Browse thread
forbidden construct as right hand side of "let rec"
-
Mathias Kende
- Stéphane Glondu
-
Xavier Leroy
- Lukasz Stafiniak
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Lukasz Stafiniak <lukstafi@g...> |
| Subject: | Re: [Caml-list] forbidden construct as right hand side of "let rec" |
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!