2 ms·
Absolutely; that's how Erlang represents strings. (Technically, a linked list of integers; there's no such thing as a Char.) It generalizes really well to Unic
by thaumasiotes 5y ago
Absolutely; that's how Erlang represents strings. (Technically, a linked list of integers; there's no such thing as a Char.)
It generalizes really well to Unicode; encoding is unnecessary. :p
On the other hand, I think the name of the function that converts an integer to its own string representation, integer_to_list, could have been chosen better.