Hi list,
Why does
ListLabels.find (fun _ -> true) [];;
produce
Characters 16-31:
ListLabels.find (fun _ -> true) [];;
^^^^^^^^^^^^^^^
This expression should not be a function, the expected type is
('a -> 'b) list
I thought the rule was that "if an application is total, labels may be
omitted." (4.1 in the manual). (I was trying to do module List =
ListLabels at the top of a file.) Thanks,
Jake
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs