Re: "ocaml_beginners"::[]
what's the "-" mean in output
United Kingdom
2007-05-21 20:37:21
On Monday 21 May 2007 15:51:27 LianYang wrote:
> i couldn't find the answer online. thanks! >
> 1. what's the "-" mean?
> # let double x =
> x*2
> in
> List.map double [1;2;3;];;
> - : int list = [2; 4; 6]
That means you typed in an expression that evaluated to a value, as opposed to
a definition: