Select rows from a collelction

row index collection

Returns new collection composed of rows selected from the input collection, columns are specified with the index argument as a collection of integer numbers. Type of the returned collection is the same as the type of the input collection.

Example:

"a := {{1 2 3} {4 5 6} {7 8 9}}
print row {1 3} :a

"l := [abc {5 6 7} 123]
print row {1 2} :l

Output:

{{1 2 3} {7 8 9}}
[abc {5 6 7}]

See also:

Table of Content