Removing the datatype declaration of "order" allows the standard General.order
to be used. Thus we can use Int.compare and String.compare instead of the
slower home-grown versions.
Chain = List +
consts chain :: "('a => 'a => bool) * 'a list => bool"
recdef chain "measure (%(r,xs). length xs)"
"chain(r, []) = True"
"chain(r, [x]) = True"
"chain(r, x#y#zs) = (r x y & chain(r, y#zs))"
end