select. Selecting entries


The method looks through the table row by row, examining each row in respect to the specified
criterion (a mathematical expression). The rows which satisfy the criterion (returned Boolean value is "true") are collected into the table with the same structure as that of the original table.

One can specify a hash of options:

$.offset(number of rows)
Omit specified number of rows.

If a negative number is specified the rows are counted from the end of the table (-1 means the last row)   [3.4.2]
Maximum rows to be processed.
1=in the reverse order.

$men[^table::create{name   age
Stephen   26
Alex   20
Michael   29
age > 20)]

$thoseAbove20 will contain table made up of rows with Stephen and Michael.

Copyright © 1997–2017 Art. Lebedev Studio | Last updated: 19.06.2012