Packages

Implementation of Unicode Sets and Regexes for Elixir that can be used in function guards, compiled patterns, nimble_parsec combinators and regexes.

Retired package: Deprecated - deprecated

Current section

Files

Jump to
unicode_set lib set protocol.ex
Raw

lib/set/protocol.ex

defimpl String.Chars, for: Unicode.Set do
def to_string(%Unicode.Set{set: set}) do
set
end
end
defimpl Inspect, for: Unicode.Set do
def inspect(%Unicode.Set{set: set}, _) do
"#Unicode.Set<" <> set <> ">"
end
end