On Thu, 16 Oct 2008, George Pollard wrote:

However, in the case he has written about this won't fire, since the LHS
cannot be substituted as `cycle list` is used more than once:

let rlist = cycle list
print ( rlist !! (10^9), rlist !! 0 )

I can get it to fire again if I write it like this:

Perhaps {-# INLINE rlist #-}
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to