Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Roadplan for world domination (or constructive criticism of ocaml facilities)
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: [Caml-list] Roadplan for world domination
On Saturday, Jul 26, 2003, at 22:14 Europe/Paris, Warren Harris wrote:

>     val assoc : 'a -> ('a * 'b) list -> 'b
>
> might be expressed as:
>
>     val assoc(key:'a) : fun(l: list(key:'a, value:'b)) : (value:'b)

You can already write:

   val assoc : 'key -> ('key * 'value) list -> 'value


-- Damien

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners