Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] lazy lists
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] lazy lists
On Fri, Aug 26, 2005 at 11:56:33AM +1200, Jonathan Roewen wrote:
> Is the underlying implementation of the builtin lists in OCaml lazy?
> If not, is performance the reason for them not being lazy? I think
> lazy lists are a very strong point of Haskell, and am wondering if
> there's a lazy list implementation with all the standard list
> operations in the case that lists aren't lazy in OCaml.

What you probably want are Streams (in camlp4).  This thread is
interesting:

http://caml.inria.fr/pub/ml-archives/caml-list/2004/09/9d5e1141c4018b995480ce1630f4879c.en.html

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com