3 ms·
Great job to the whole core team! There's a bunch of awesome stuff in here, but I think the one that's going to steal the most hearts is: Enum.sort(my_list
by gamache 7y ago
Great job to the whole core team! There's a bunch of awesome stuff in here, but I think the one that's going to steal the most hearts is:
Enum.sort(my_list, :asc)
Enum.sort(my_list, :desc)
That rounds off a sharp corner of a very common part of the language.
- deleted 7y ago[deleted]
- elcritch 7y agoThat and DateTime sorting using the module api. That’s much nicer! One of the few "oh what the..." bugs I’ve had in Elixir was not realizing that sort defaults to structural sorting. Also it helped make sense why all the Erlang datetime primitives are tules that’s structurally sort correctly.