Set (topology v0.1.0)

Operations for sets.

Link to this section Summary

Functions

Returns a intersection of the given sets.

Returns a power set of the given set.

Link to this section Functions

Link to this function

intersection(set)

Returns a intersection of the given sets.

examples

Examples

iex> Set.intersection(MapSet.new([MapSet.new([3, 4, 6]), MapSet.new([1, 4, 3]), MapSet.new([5, 2, 3])]))
MapSet.new([3])

Returns a power set of the given set.

examples

Examples

iex> Set.power_set(MapSet.new([1, 2, 3]))
MapSet.new([MapSet.new([]), MapSet.new([1]), MapSet.new([2]), MapSet.new([3]), MapSet.new([1, 2]), MapSet.new([1, 3]), MapSet.new([2, 3]), MapSet.new([1, 2, 3])])