Selects the objects that meet the condition.
select(Block condition) | |||
---|---|---|---|
Argument | Block | condition | Condition that the objects which are to be selected must meet. |
Return value | Collection | Collection of all objects that meet the condition. The collection has the same type, as the collection, that select is sent to. |
Formula | Result |
---|---|
=List{1,1,2}.select(x|x=1) | [1, 1] |