In the definition of anamerge, the local mergehead function has argument lists
let fun mergehead (c1, w1) [] = ...
| mergehead (c1, w1) ((c2 :: l2) :: rr) = ...
Here the types of mergehead's arguments are string*string and string list list. If the second definition had mergehead (c1,w1) ((c2,l2)::rr) = ..., so that the type of its second argument would be (string*string) list, the function itself as well as the body of anamerge would be much easier to write. Would writing mergehead with these argument types be ok?
|
I recommend you keep the types as they are by Mike O'Donnell, 2001, Nov 21
Changing mergehead by Jake Lilly, 2001, Nov 28
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: