You can add a "elixir" after 3 symbols to get color. Your solution is quite good for read.
defmodule Triple do def triple_trouble(one, two, three) do list = [one, two, three] [first, second, third] = Enum.map(list, &String.graphemes/1) Enum.zip([first, second, third]) |> Enum.map(&Tuple.to_list/1) |> List.flatten |> Enum.join end end
Thanks, I added the colors.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can add a "elixir" after 3 symbols to get color. Your solution is quite good for read.
Thanks, I added the colors.