On Mon, Nov 14, 2011 at 5:04 PM, Eric Tanter <etan...@dcc.uchile.cl> wrote: > Thanks for the input. > I tried with Lazy Racket in the language menu instead of #lang, but it does > not really do what I want (ie. Haskell). > Actually, apart from the fact that things are printed differently, the result > is quite the same: > >> ones > (cons 1 (delay ...)) > > ;; ! is not enough >> (! ones) > (cons 1 (delay ...)) > >> (!! ones) > (shared ((-0- (cons 1 -0-))) -0-)
The behavior is a little different in that one level of the cons is forced. You can change the output style in the "Details" section of the language menu. If you want to emulate Haskell does that mean you want an infinite loop? You can use !!list for that. _________________________________________________ For list-related administrative tasks: http://lists.racket-lang.org/listinfo/users