In a comprehension like this, what's the difference between pattern matching with "<-" and "=" ?
On Wed, 27 Jul 2016 05:20:09 +0000 Peter Hamilton <peterghamil...@gmail.com> wrote: > This is a fairly straightforward (though a bit long) for > comprehension: > > for {room_id, room} <- data, > {date, obj} <- room, > stuff = obj["important_stuff"], > {child_id, child} <- stuff, > child_id != "id" do > %{ > room_id: room_id, > date: date, > ... > } > end > > On Tue, Jul 26, 2016, 9:45 PM Sam Hains <sdhai...@gmail.com> wrote: > > > That should read: triple nested Enum.each **** > > > > -- > > You received this message because you are subscribed to the Google > > Groups "elixir-lang-talk" group. > > To unsubscribe from this group and stop receiving emails from it, > > send an email to elixir-lang-talk+unsubscr...@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/elixir-lang-talk/44849237-d460-4760-ad3d-4ced90c9f96c%40googlegroups.com > > <https://groups.google.com/d/msgid/elixir-lang-talk/44849237-d460-4760-ad3d-4ced90c9f96c%40googlegroups.com?utm_medium=email&utm_source=footer> > > . > > For more options, visit https://groups.google.com/d/optout. > > > -- You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-talk+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/20160729153309.7e557ad9%40ArchPierre2. For more options, visit https://groups.google.com/d/optout.