Enum.fetch! returns simply the item 
itself. http://elixir-lang.org/docs/master/elixir/Enum.html#fetch!/2

fetch returns the tuples.

On Monday, July 18, 2016 at 11:55:08 AM UTC-4, eksperimental wrote:
>
> it doesn't (other than one returns a tuple and another the element 
> itself), 
> but same thing as Myron Marston mentioned, 
> it is useful when used in pipelines. 
>
> If we decide not to included. We should mention that in the at/3 docs. 
>
>
> On Mon, 18 Jul 2016 17:33:24 +0200 
> José Valim <jose....@plataformatec.com.br <javascript:>> wrote: 
>
> > How Enum.at!/2 would be different from Enum.fetch!/2? 
> > 
> > 
> > 
> > *José Valim* 
> > www.plataformatec.com.br 
> > Skype: jv.ptec 
> > Founder and Director of R&D 
> > 
> > On Mon, Jul 18, 2016 at 5:28 PM, eksperimental 
> > <eksper...@autistici.org <javascript:>> wrote: 
> > 
> > > Hi everyone. 
> > > I think if we have Enum.at/3 we should also have Enum.at!/2 
> > > 
> > > as with Enum.at/3 there is no way to guarantee that certain index 
> > > doesn't exist, since the default value could be contained in any of 
> > > the indexes. 
> > > 
> > > The only option is to use Enum.fetch!/2 
> > > 
> > > what do you guys think of this? 
> > > 
> > > -- 
> > > 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-co...@googlegroups.com <javascript:>. 
> > > To view this discussion on the web visit 
> > > 
> https://groups.google.com/d/msgid/elixir-lang-core/20160718222830.4f1c21d4.eksperimental%40autistici.org
>  
> > > . 
> > > For more options, visit https://groups.google.com/d/optout. 
> > >   
> > 
>
>

-- 
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/a89c6152-f54f-4f92-857e-0c194fdc0e3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to