4 ms·
An empty list in Elixir is [], and is truthy. Parens aren't used for any collection type in Elixir ( `(1,2,3)` is just a syntax error), so the lispyness explan
by SEMW 9y ago
An empty list in Elixir is [], and is truthy.
Parens aren't used for any collection type in Elixir ( `(1,2,3)` is just a syntax error), so the lispyness explanation for () being nil in Elixir, while neat, doesn't really make sense