
29 May
2009
29 May
'09
7:32 p.m.
Jeff Wheeler
f = \x -> (x `quot` 10, x `mod` 10)
Your function f is almost the same as divMod in Prelude. Also, using a lambda function seems odd; this is simpler:
f x = (x `quot` 10, x `mod` 10)
Hmm, simplicity. f = (`quot` 10) &&& (`mod` 10) SCNR. Greets, Ertugrul. -- nightmare = unsafePerformIO (getWrongWife >>= sex) http://blog.ertes.de/