filter
filter(x, test)
Filter items in a matrix.
Try it yourself:
$1 | isPositive(x) = x > 0
| |
$2 | filter([6, -2, -1, 4, 3], isPositive)
| |
$3 | filter([6, -2, 0, 1, 0], x != 0)
|
Filter items in a matrix.
Try it yourself:
$1 | isPositive(x) = x > 0
| |
$2 | filter([6, -2, -1, 4, 3], isPositive)
| |
$3 | filter([6, -2, 0, 1, 0], x != 0)
|