Rupyex.Set (Rupyex v0.1.0)

Copy Markdown View Source

A Python set or frozenset.

MapSet is deliberately not used: its internal representation is private, and Python sets can hold values (tuples, floats) whose Elixir counterparts compare differently.

Summary

Types

t()

@type t() :: %Rupyex.Set{items: [term()]}

Functions

new(items)

@spec new(Enumerable.t()) :: t()

to_list(set)

@spec to_list(t()) :: [term()]