caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Lukasz Stafiniak <lukstafi@gmail.com>
To: caml-list <caml-list@yquem.inria.fr>
Subject: Re: [Caml-list] forbidden construct as right hand side of "let rec"
Date: Wed, 28 Oct 2009 23:44:28 +0100	[thread overview]
Message-ID: <4a708d20910281544w203038aq7243066ca1f98001@mail.gmail.com> (raw)
In-Reply-To: <4AE876C2.8050707@inria.fr>

On Wed, Oct 28, 2009 at 5:52 PM, Xavier Leroy <Xavier.Leroy@inria.fr> wrote:
> Lukasz Stafiniak wrote:
>
>> While we are at it, what is the best way to convert a "straight" list
>> into a cyclic list?
>
> Again, you can do that just fine using lazy lists instead of lists:
>
> type 'a lazylist = 'a lazylist_content Lazy.t
> and 'a lazylist_content = Nil | Cons of 'a * 'a lazylist
>
> Hope this helps,
>
> - Xavier Leroy
>

Thank you, it makes sense!


      reply	other threads:[~2009-10-28 22:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22 22:22 Mathias Kende
2009-10-22 22:34 ` [Caml-list] " Stéphane Glondu
2009-10-22 23:10   ` Lukasz Stafiniak
2009-10-23 15:35     ` Damien Guichard
2009-10-23 16:14       ` Marc de Falco
2009-10-23 17:51         ` blue storm
2009-10-25 14:11   ` Mathias Kende
2009-10-25 15:03     ` Stéphane Glondu
2009-10-28 16:52 ` Xavier Leroy
2009-10-28 22:44   ` Lukasz Stafiniak [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4a708d20910281544w203038aq7243066ca1f98001@mail.gmail.com \
    --to=lukstafi@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).