IsRow
Tests if a two-dimensional container has height 1.
Syntax
-
IsRow(X)
-
X
is any object
-
Description
IsRow(X)
returns true
iff height(X) = 1
.
Examples
A ≔ ❨❨5, 1, 2❩, ❨4, 7, 5❩, ❨0, 2, 1❩❩
⎛5 1 2⎞ ⎜4 7 5⎟ ⎝0 2 1⎠
B ≔ ❨❨4, 7, 6❩❩
(4 7 6)
C ≔ ❨❨1❩, ❨2❩, ❨7❩❩
⎛1⎞ ⎜2⎟ ⎝7⎠
'(IsRow(A), IsRow(B), IsRow(C))
false true false