On Wednesday, 26 October 2022 at 13:53:01 UTC-4 José Valim wrote:
> The other thing is that the original code can be written as this:
>
> & &1 |> downcase |> split("_") |> map(&capitalize/1) |> join
>
I had the exact same reflection.
BTW, this actually doesn't work, giving `nested captures are not allowed.`
error, but that's not directly related (and seems like it could be
resolved; second `&` isn't really a capture, right?).
--
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/a021d58c-3ec8-43c3-9de3-8383f5e2e9a3n%40googlegroups.com.