Hi I look for a transpose function in Elixir. For example I have this kind of array a and after calling a function the result should be b:
a
b
There (still) isn't one in Elixir, but you can use:
def transpose(rows) do rows |> List.zip |> Enum.map(&Tuple.to_list/1) end