MapSet.new
You're seeing just the function
new
, go back to MapSet module for more information.
Specs
new() :: t()
Returns a new set.
Examples
iex> MapSet.new()
#MapSet<[]>
Specs
Creates a set from an enumerable.
Examples
iex> MapSet.new([:b, :a, 3])
#MapSet<[3, :a, :b]>
iex> MapSet.new([3, 3, 3, 2, 2, 1])
#MapSet<[1, 2, 3]>
Specs
Creates a set from an enumerable via the transformation function.
Examples
iex> MapSet.new([1, 2, 1], fn x -> 2 * x end)
#MapSet<[2, 4]>