<br><div><span class="gmail_quote">On 12/29/06, <b class="gmail_sendername">Neil Mitchell</b> <<a href="mailto:ndmitchell@gmail.com">ndmitchell@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>map (:[]), :[] takes a single element and puts it into a list. Some<br>people refer to this as "box"<br><br>The final f3 clause can be made a bit neater:<br><br>> f3 la@(a:as) lb@(b:bs) | sum a <= sum b = a : f3 as lb
<br> | otherwise = b : f3 la bs<br><br><br></blockquote></div>Hi Neal,<br>
<br>
Neat tricks on both counts - thanks!<font size="1"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;"></font>
<br>Thanks,<br>Quan<br><br>