Version française
Home     About     Download     Resources     Contact us    
Browse thread
How important are circular lists/recursive objects?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Fabrice Marchant <fabricemarchant@f...>
Subject: Re: [Caml-list] Re: How important are circular lists/recursive objects?
On Wed, 04 Apr 2007 15:28:18 +1000
skaller <skaller@users.sourceforge.net> wrote:
 
> You can also create cycles using functional abstraction 

  Sorry, I completely missed this old exciting topic and posts.

Please could you develop a bit to show how we can create cycles using functional abstraction ?

 In fact, my problem is I do not exactly see what means "functional abstraction".

Do you speak about something like this ?

type circular_list = Circular_list of (unit -> circular_list)

let rec cl = fun () -> Circular_list (fun () -> Circular_list cl)

Regards,

Fabrice