caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* lazy lists
@ 2007-05-01 14:10 Yitzhak Mandelbaum
  2007-05-01 15:47 ` [Caml-list] " Loup Vaillant
  0 siblings, 1 reply; 12+ messages in thread
From: Yitzhak Mandelbaum @ 2007-05-01 14:10 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 249 bytes --]

Hi,

Does anyone have/know of a lazy list module for ocaml? I couldn't  
find anything on the hump.

Thanks!
Yitzhak

--------------------------------------------------
Yitzhak Mandelbaum
AT&T Labs - Research

http://www.research.att.com/~yitzhak



[-- Attachment #2: Type: text/html, Size: 2545 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] lazy lists
@ 2005-08-25 23:56 Jonathan Roewen
  2005-08-26 10:56 ` Marius Nita
  2005-08-26 11:04 ` Richard Jones
  0 siblings, 2 replies; 12+ messages in thread
From: Jonathan Roewen @ 2005-08-25 23:56 UTC (permalink / raw)
  To: caml-list

Hi,

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.

Also, if they aren't, can someone give me some insight into the
reasons INRIA chose not to?

Kindest Regards,

Jonathan


^ permalink raw reply	[flat|nested] 12+ messages in thread
* [Caml-list] lazy lists
@ 2002-07-03  9:45 Michael Vanier
  2002-07-03 22:04 ` Remi VANICAT
  0 siblings, 1 reply; 12+ messages in thread
From: Michael Vanier @ 2002-07-03  9:45 UTC (permalink / raw)
  To: caml-list


What's the best way to write a lazy list data type in ocaml?  I've been
playing around with this datatype (from an old mailing list posting):

type 'a stream =
  Nil
| Cons of 'a Lazy.t * 'a stream Lazy.t

but I can't figure out how to write a "stream_cons" function.  Also, it
appears that the Lazy.t data type uses references; why is this?

Mike
-------------------
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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-05-02 10:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01 14:10 lazy lists Yitzhak Mandelbaum
2007-05-01 15:47 ` [Caml-list] " Loup Vaillant
2007-05-01 19:43   ` Jon Harrop
2007-05-02  7:16     ` Nicolas Pouillard
2007-05-02 10:03       ` Loup Vaillant
2007-05-02 10:15         ` Daniel de Rauglaudre
  -- strict thread matches above, loose matches on Subject: below --
2005-08-25 23:56 Jonathan Roewen
2005-08-26 10:56 ` Marius Nita
2005-08-26 11:04 ` Richard Jones
2005-08-26 11:16   ` Jun Mukai
2002-07-03  9:45 Michael Vanier
2002-07-03 22:04 ` Remi VANICAT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).