Skip to main content

⍪ — Table / Catenate first

Function. Keys: Alt-Minus ,. Hanzi: 接/矩. Ranks: ∞ monadic, ∞ ∞ dyadic

⍪Y makes a matrix: first axis becomes rows, remaining axes become columns.

⍪1 2 3             ⍝ 3 1ρ1 2 3
ρ⍪2 3 4ρ0          ⍝ [2 12]ₓ

X⍪Y joins on the first axis. ⍪⍠K follows Catenate.

1 2⍪3 4            ⍝ 1 2 3 4

Inverse

⍪⁻Y gives the vector that a one-column matrix holds, and gives back any other matrix. X⍪⁻Y removes the fixed major cells X from the front of Y. (⍪↢X)⁻Y removes the major cells X from the end of Y.

⍪⁻⍪1 2 3             ⍝ 1 2 3
[1 2]⍪⁻[1 2◇3 4]   ⍝ [3 4◇]