--- from: http://rosettacode.org/wiki/Set note: Discrete math