嗨,我在Elixir中寻找转置功能.例如,我有这种数组a,在调用函数后,结果应为b:
a
b
a = [[1, 2], [3, 4], [5, 6]] b = transpose(a) b => [[1, 3, 5], [2, 4, 6]]
elixir
elixir ×1