Transpose: Difference between revisions

Content added Content deleted
(Created page with "'''Transpose''' (a.k.a. '''flip''') swaps the leading two axes of a 2+ dimensional rectangular array. Dialects differ in their treatment atoms, lists, and ragged arrays. == E...")
 
No edit summary
Line 1: Line 1:
{{primitive}}
'''Transpose''' (a.k.a. '''flip''') swaps the leading two axes of a 2+ dimensional rectangular array. Dialects differ in their treatment atoms, lists, and ragged arrays.
'''Transpose''' (a.k.a. '''flip''') swaps the leading two axes of a 2+ dimensional rectangular array. Dialects differ in their treatment atoms, lists, and ragged arrays.


+("ab";"cd";"ef")
== Examples ==
("ace";"bdf")

+(`a`b`c;`d)
+("ab";"cd";"ef") -> ("ace";"bdf")
+(`a`b`c;`d) -> (`a`d;`b`d;`c`d)
(`a`d;`b`d;`c`d)