miniapl

— Replicate / Reduce first

N⌿Y replicates first-axis cells.

1 0⌿2 3⍴⍳6         ⍝ 1 3⍴1 2 3

f⌿Y reduces the first axis.

+⌿2 3⍴⍳6           ⍝ 5 7 9

N f⌿Y performs n-wise reduction there.

2+⌿3 2⍴⍳6          ⍝ 2 2⍴4 6 8 10

Counts, identities and [K] follow /.