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 | Map | Map of all key-value pairs that meet the condition. |
Formula | Result |
---|---|
=Map{Pair{'A',1}, Pair{'B',2}}.select(x|x.key='A') | [A»1] |