caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Accessing the nth element in a stream takes time quadratic in n
@ 2001-03-05 22:50 DURAK Berke
  2001-03-06  5:46 ` Daniel de Rauglaudre
  0 siblings, 1 reply; 3+ messages in thread
From: DURAK Berke @ 2001-03-05 22:50 UTC (permalink / raw)
  To: caml-list

This happens when streams are defined recursively, as in

let rec nat_stream n = [< 'n; nat_stream (n + 1) >]

and the problem holds for streams built of channels or strings, too.

-------------------
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr


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

end of thread, other threads:[~2001-03-07 15:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-05 22:50 [Caml-list] Accessing the nth element in a stream takes time quadratic in n DURAK Berke
2001-03-06  5:46 ` Daniel de Rauglaudre
2001-03-06  7:46   ` kahl

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).