|
(p1 :: r) means a list whose first element is p1, and the rest of which is also a list, called r.
by the name p1, i assumed it must be a pair, and r is the remainder. if you know scheme/lisp p1 is that car of the argument and r is the cdr. so with ((c2 :: l2) :: rr), this means that there is a list whose car is a list, whose car is a canonical form, and whose cdr is a list of words associated with that form, and the cdr of the whole thing is rr, the remainder. hope this helps. jesse.
|
But.... by Mamun Tanveer, 2001, Nov 28
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
:: is infix cons by Mike O'Donnell, 2001, Nov 28
to: