
29 Dec
2006
29 Dec
'06
3:16 p.m.
On 12/29/06, Neil Mitchell
map (:[]), :[] takes a single element and puts it into a list. Some people refer to this as "box"
The final f3 clause can be made a bit neater:
f3 la@(a:as) lb@(b:bs) | sum a <= sum b = a : f3 as lb | otherwise = b : f3 la bs
Hi Neal,
Neat tricks on both counts - thanks! Thanks, Quan