j
k
j a
j l
Hi
...Now why isn't pattern matching lazy by default? This seems odd for a newbie since everything else is lazy by default.
Now why isn't pattern matching lazy by default? This seems odd for a newbie since everything else is lazy by default.
f ~(x:xs) = rhs f ~[] = rhs' Now guess what f [] does... If you use a where binding then pattern matching is lazy. Thanks Neil
Back to the thread
Back to the list