This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Baisampayan Saha
Posted May 10 - Read on Facebook

Hi...need a small help!
I have a 2d array, the order of which is in vertical order. I want to read the array in horizontal format. How do I transporse the array? Stuck for sometime now. Thank You.

4 Comments

Jonas Treub

Try making x -> y and y -> x

Baisampayan Saha

that works...but I wanted to actually transpose the matrix. I wanted the original one and also the transposed one after some interaction...

Jonas Treub

transposed = _.zip.apply(_, original)

Baisampayan Saha

thanks...let me try it out... :)

Read the entire post on Facebook