
17 Aug
2007
17 Aug
'07
5:25 a.m.
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.