Why does `Enum.at/2` exist anyway?  That seems to imply that the enumerable 
is something indexable, which may not be the case in something like a large 
map (and many other things)...


On Wednesday, April 26, 2017 at 4:09:21 AM UTC-6, José Valim wrote:
>
> You could make the same argument for  `List.first(x)`. Why use that when 
>> we already have `Enum.at(x, 0)` ?
>>
>
> Because it works only on lists and it gives an idea of ordering which 
> Enum.at/2 does not have. :)
>
> Enum.one does not any new property, validation or interpretation to the 
> current API.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/d6d09867-825d-4b68-998c-10b6a5c3abc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to