15 lines
236 B
Elixir
15 lines
236 B
Elixir
object Tuple
|
|
def inspect
|
|
strings = to_list.map -> (x) x.inspect.to_char_list
|
|
"{#{String.new Erlang.string.join(strings, [$,, $\s])}}"
|
|
end
|
|
|
|
def to_s
|
|
inspect
|
|
end
|
|
|
|
def to_list
|
|
Erlang.tuple_to_list(self)
|
|
end
|
|
end
|