Document last modified:
union ( [(1, "a"), (1, "b"), (1, "c")], [(1, "a"), (1, "x"), (2, "c")]);
fun member (_,[]) = false
| member (a,(h::t)) =
if a=h then true
else member (a, t);
fun union ([],L) = L
| union ((h::t),L) =
if member(h,L) then union(t,L)
else h::union(t,L);