Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,9 @@
|
|||
m = [[1, 1, 1, 1],
|
||||
[2, 4, 8, 16],
|
||||
[3, 9, 27, 81],
|
||||
[4, 16, 64, 256],
|
||||
[5, 25,125, 625]]
|
||||
|
||||
transpose = fn(m)-> List.zip(m) |> Enum.map(&Tuple.to_list(&1)) end
|
||||
|
||||
IO.inspect transpose.(m)
|
||||
Loading…
Add table
Add a link
Reference in a new issue