Set (topology v0.1.2)
Operations for sets.
Link to this section Summary
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])
Link to this function
power_set(set)
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])])
Link to this function