lazy patterns versus where-clauses
21 Jun
2007
21 Jun
'07
4:13 p.m.
Is f(~p(x))=e(x) semantically equivalent to: f(z)=e(x) where p(x)=z?
7:31 p.m.
New subject: [Haskell-cafe] lazy patterns versus where-clauses
Peter Padawitz writes:
Is f(~p(x))=e(x) semantically equivalent to: f(z)=e(x) where p(x)=z?
Yep. See also http://en.wikibooks.org/wiki/Haskell/Laziness#Lazy_pattern_matching regarding lazy patterns. -- -David House, dmhouse@gmail.com
7008
Age (days ago)
7008
Last active (days ago)
2 comments
3 participants
participants (3)
-
David House -
Peter Padawitz -
Stefan O'Rear