Re: Why is this strict in its arguments? (Jules Bean)

5 Dec
2007
5 Dec
'07
12:58 p.m.
Wow, thanks. I had a similar function (long if/then/else chain, fromJust) that I haven't been happy with, but couldn't see how to improve it. Now I have a much better idea for how to fix that function. Thanks again, John Lato
the general pattern is : replace isNothing with a case match on Nothing, replace fromJust with a case match on Just, don't be afraid to case two expressions at once.
Hope someone finds that useful,
Jules
6377
Age (days ago)
6377
Last active (days ago)
0 comments
1 participants
participants (1)
-
John Lato