While we are at it, what is the best way to convert a "straight" list into a cyclic list?
i.e. convert let l = a::b::[] into let rec l = a::b::l (for arbitrary length lists). (The answer I recall from the archives was using Obj.magic to mutate the [] in the original list). On Fri, Oct 23, 2009 at 12:34 AM, Stéphane Glondu <st...@glondu.net> wrote: > Mathias Kende a écrit : >> let rec g = f g > > What about: > > let rec g x = f g x _______________________________________________ Caml-list mailing list. Subscription management: http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list Archives: http://caml.inria.fr Beginner's list: http://groups.yahoo.com/group/ocaml_beginners Bug reports: http://caml.inria.fr/bin/caml-bugs