Skip to content

Conversation

milmazz
Copy link
Member

@milmazz milmazz commented Jan 9, 2017

screen shot 2017-01-08 at 10 00 35 pm

groups
|> Map.to_list()
|> List.keysort(1)
|> Enum.reduce([], fn({k, _}, acc) ->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to use a map instead of reduce+Keyword.put+reverse.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

Copy link
Member

@josevalim josevalim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment and we should be good to go!

@milmazz milmazz merged commit acbd89d into elixir-lang:master Jan 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants