> List.unwrap ensures its arguments are wrapped in a list only once.

Only once or at most once?

I think it should be a strict mathematical inverse so:

(List.wrap(foo) |> List.unwrap) == foo

On Sun, Sep 25, 2016, 3:17 PM Chris Keele <[email protected]> wrote:

> Simply put, if List.wrap ensures its arguments are wrapped in a list at
> least once, List.unwrap ensures its arguments are wrapped in a list only
> once.
>
> --
> 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/526062e7-6a91-4a54-9e02-d70c7bcfe572%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/526062e7-6a91-4a54-9e02-d70c7bcfe572%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/CAOMhEnzA4UQTA7xunN%3Dn2PSENqgtcspVCPHKpgxCm7aPNBoDoA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to