Set Utilities (#31)

This object is useful for operations that treat lists as sets (i.e.,
without concern about order and assuming no duplication).

:union(set, set, ...) => union
:intersection(set, set, ...) => intersection

:Diff*erence(set1, set2, ..., setn)
=> result of removing all elements of sets 2..n from set 1.
:exclusive_or(set, set, set, ...)
=> all elements that are contained in exactly one of the sets

:includes(set1, set2, ..., setn)
=> true if and only if all of sets 2..n are subsets of set 1

:equal(set1, set2)
=> true if and only if set1 and set2 are equal

See also: ?$list_utils

You are not logged in.

[home | help | who | search | setup | code]