[Haskell-cafe] Re: Bathroom reading

Kim-Ee Yeoh a.biurvOir4 at asuhan.com
Fri Aug 17 05:25:11 EDT 2007

ok-4 wrote:
> Someone mentioned the "Blow your mind" page.
> One example there really caught my attention.
>   "1234567" => ("1357","246")
>   foldr (\a ~(x,y) -> (a:y,x)) ([],[])
> I've known about lazy match since an early version of the Haskell
> report, but have never actually used it.  Last night, looking at
> that example, the lights went on and I finally grokked why it's
> there and understood when/why I might use it myself.

Don't you want an infinite list to illustrate the necessity 
of laziness?

View this message in context: http://www.nabble.com/Bathroom-reading-tf4267956.html#a12196642
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

More information about the Haskell-Cafe mailing list