It respects the existence of lists as a general data structure––effectively only flattening wrapper lists.
nested = [ [], :a, [:b], [[:c]] ] List.flatten nested #=> [:a, :b, :c] List.unwrap nested #=> [ [], :a, [:b], [:c] ] -- 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/CAOtzO5J6LzRXLAM_G0-uSf68W_kc4nQr%2BPkdi6n3R7UF0qwRiw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.