What's the difference between this and List.flatten ? Cheers, Louis
On 25 Sep 2016 23:00, "Chris Keele" <[email protected]> wrote: > List.unwrap/1 > <https://github.com/christhekeele/elixir/commit/2a951a8a8a5b5eeb636fe00ca1ce11e8da58bb5f> > is a simple compliment to List.wrap/1––it walks a nested list and unwraps > any extraneous wrappers it finds, eg: [[:a]] -> [:a]. > > I mostly find it useful for cleaning up after nested list transforms, but > always manage to implement it wrong the first few times, so I thought I'd > throw it out there as a general list utility. > > -- > 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/3da5323f-585f-4068-8ef0- > 1865d3a75fd0%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/3da5323f-585f-4068-8ef0-1865d3a75fd0%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-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/CAM-pwt6kAJHnemaTihDLBLuXTFzc%3D%3D_W_9%3DLY4b3KEUSNaOJmA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
