[Haskell-cafe] The C Equiv of != in Haskell miscommunication
thread
Jason Dagit
dagit at codersbase.com
Tue May 29 21:40:05 EDT 2007
On 5/28/07, Donald Bruce Stewart <dons at cse.unsw.edu.au> wrote:
> This thread should end, guys. It is inappropriate for the Haskell lists,
> and appears to have been a simple misunderstanding anyway.
>
> Thanks everyone. Please stay friendly!
>
> -- Don
>
> P.S. Have some cute code:
>
> Control.Monad.Fix.fix ((1:) . scanl (+) 1)
Speaking of cute code, I'm fond of this:
map length . List.group . Control.Monad.Fix.fix $ show
And other (longer) variations which generate only powers of two. It's
a great conversation starter for teaching about fix.
Jason
More information about the Haskell-Cafe
mailing list