method vector.transpose
Contract
Return typewob
No input parameters.
Water Contract
<method vector.transpose/>
Transpose takes a 2D vector as its subject and 'twists' it such that the output row count will be the same as the input column count, and the output column count will be the same as the input column count.
<v <v 1 2 3 4/> <v 5 6 7 8/>/>.<transpose/>
<v <v 1 5/> <v 2 6/> <v 3 7/> <v 4 8/>/>
Example: transpose twice to get back the original
<v <v 1 2 3 4/> <v 5 6 7 8/>/>.<transpose/>.<transpose/>
<v <v 1 2 3 4/> <v 5 6 7 8/>/>