|
That's what I'd been figuring. I'm assuming that merging the heads of the lists simply means making (c1, w1) into (c1, (w1::l2) and then performing mergehead on (c1, (w1::l2)) rr, but SML won't let me do that, giving me a type error? How are we supposed to represent the lists of words with the same canonical form? I thought it would simply be the canonical form followed by a list of equivalent words, but I can't get it to work? Any suggestions?? Thanks.
Mamun
|
Be careful about lists vs. pairs vs. list elements by Mike O'Donnell, 2001, Nov 28
Final data types by Jesse Dailey, 2001, Nov 28
Output is list of lists, not list of pairs by Mike O'Donnell, 2001, Nov 28
to: