If the Map (Map, OrderedMap or BidiMap) is empty, the result of the formula given with the argument block is returned.
ifEmpty(Block block) | |||
---|---|---|---|
Argument | Block | block | Formula, which returns an alternative result. |
Return value |
Formula | Result |
---|---|
=Map{}.ifEmpty(Map{Pair{1,2}}) | [1ยป2] |