#
# dual(R) returns the dual of the relation R. That is, each ordered pair
# [a,b] in R (a list or set) is replaced by [b,a].
#
`posets/dual`:=proc(R) map(x->[x[2],x[1]],R) end:
#
save `posets/dual`, cat(HomeLib,`/posets/dual.m`);
read cat(HomeLib,`/help/posets/dual`);
quit;

