>
> # let t x = match x with
>  a when x<=4 -> true
>  | _ -> false;;
>

ok, I had a similar attempt with

    let tt x = function
    a when x<=4 -> true
    | _ -> false;;

but that gave me the following (scary  -> 'a -> ) signature

     val tt : int -> 'a -> bool = <fun>

so I stopped

thanks anyway

_______________________________________________
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

Reply via email to