( ) — Group / Rows / Train
(Y) groups an expression, whatever it holds: (1 2) is 1 2, (x) is x, and (-) is -. Inside parentheses, spaces separate runs, and a line break means ◇. Parentheses hold one expression wherever they appear, including inside brackets.
(2×3)+4 ⍝ 10
x←2 4 9
[(+/x ÷ ≢x) ≢x] ⍝ 5 3ₓ
(-)3 ⍝ ¯3
f←- ◇ (f)3 ⍝ ¯3Parentheses group a derived function between its arguments, as in 2(+⍣3)1. Without them, 2+⍣3 1 takes 3 1 as the operand. With only a right argument, the token separator ⁝ keeps the literals apart without grouping: ≥⍣3⁝5.
2(+⍣3)1 ⍝ 7(A◇B) is a vector of the rows A and B. Each row is a vector, even a row with one item, and rows can differ in length. (A◇) is a one-item vector holding the row A. In (…)ₓ, every number is exact, and fractions are floored.
(4◇4 5◇4 5 6) ⍝ [[4] [4 5] [4 5 6]]
(1 2◇) ⍝ [[1 2]]
(0 1◇2 3)ₓ ⍝ [[0 1]ₓ [2 3]ₓ](f g)Y is the atop f(g Y), and (f g h)Y is the fork (f Y)g(h Y). Trains gives the rules for longer trains and dyadic calls.
(- +/)1 2 3 ⍝ ¯6
(+/÷≢)2 4 9 ⍝ 5For a scalar, use ⊂ on a subject or ˢ on a function. Types of brackets compares parentheses with brackets and braces.