Correction: there is no `List.rest`. Using the same reasoning as below, I 
think this would be useful, too.

Op donderdag 16 februari 2017 12:02:24 UTC+1 schreef Sam Vervaeck:
>
> Hi,
>
> I've found List.first and List.rest, but I couldn't find Enum.first and 
> Enum.rest. Is there any reason this is only implemented for lists? I can 
> think of a few cases were this would be useful. Any recursive algorithm 
> that runs following the prescription "take one element out the bunch, 
> process it, and take care of the rest later" would, I think, benefit from 
> it.
>
> Kind regards,
> Sam
>

-- 
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 elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/45de0db8-f173-41ee-b0d6-20e55eef2be9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to