Browse thread
List comprehensions
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] List comprehensions |
On Sat, 2007-08-18 at 15:28 +0100, Jon Harrop wrote: > I didn't know OCaml had list comprehensions built-in: > > $ ocaml camlp4oof.cma > Objective Caml version 3.10.0 > > Camlp4 Parsing version 3.10.0 > > # [x + 2*x + x/2 | x <- [1; 2; 3; 4]];; > - : int list = [3; 7; 10; 14] > # > > Cool! :-) Since you're fishing, I'm biting -- what bait do you need to catch a camlp4oof? -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net