I also felt that changing
mergehead (c1, w1) ((c2::l2) :: rr) to
mergehead (c1, w1) ((c2,l2) :: rr)
would make the resulting code easier. This doesn't alter any other part of the provided code and still allows the correct output to be easily produced.
|
it's also possible the current way by Ben Wolfson, 2001, Nov 28
Untitled by M.J., 2001, Nov 28
(x,y) is a pair, not a list by Mike O'Donnell, 2001, Nov 28
Thanks by msjohnso@uchicago.edu, 2001, Nov 28
Still confused by msjohsno@cs.uchicago.edu, 2001, Nov 28
pairs go in, lists come out by Mike O'Donnell, 2001, Nov 28
Okay then... by msjohnso@uchicago.edu, 2001, Nov 28
Wait a minute..., 2001, Nov 28
remeber that it's merge*head* by Ben Wolfson, 2001, Nov 28
Thanks by M.J., 2001, Nov 28
to: