Browse thread
[Caml-list] Reason why 'for' doesn't work across floats?
[
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: | 2004-01-09 (07:36) |
From: | Florian Hars <hars@b...> |
Subject: | Re: [Caml-list] Reason why 'for' doesn't work across floats? |
Richard Jones wrote: > On Thu, Jan 08, 2004 at 04:03:58PM +0100, Michal Moskal wrote: >>>let f a b = for x = a to b do () done >> >>What type would f have (int -> int -> int or float -> float -> float)? > > Perhaps 'a -> 'a -> 'a ? So how many iterations would f (Some (fun x -> x < "foobar"), None) (None, Some [| 1.2, 1.4, 1.6|]) perform? Yours, Florian. ------------------- 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