Re: [elixir-core:6400] [Proposal] List.unwrap/1

2016-09-25 Thread Louis Pilfold
What's the difference between this and List.flatten ? Cheers, Louis On 25 Sep 2016 23:00, "Chris Keele" wrote: > List.unwrap/1 > > is a simple compliment to List.wrap/1––it walks a

[elixir-core:6400] [Proposal] List.unwrap/1

2016-09-25 Thread Chris Keele
List.unwrap/1 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