caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Pattern matching over lazy lists
@ 2007-07-10 22:38 Jon Harrop
  2007-07-11  8:44 ` [Caml-list] " Loup Vaillant
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jon Harrop @ 2007-07-10 22:38 UTC (permalink / raw)
  To: caml-list


What's the best way to do this?

I was thinking of forcing the first few elements of a lazy list before pattern 
matching and then looking for forced values in the lists as patterns but I 
don't think you can deconstruct a lazy value in a pattern match...

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal
http://www.ffconsultancy.com/products/ocaml_journal/?e


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

end of thread, other threads:[~2007-07-11 15:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-10 22:38 Pattern matching over lazy lists Jon Harrop
2007-07-11  8:44 ` [Caml-list] " Loup Vaillant
2007-07-11 11:13 ` Markus E.L.
2007-07-11 15:51 ` Martin Jambon

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