only multimethod
Methods
- only(predicate:Any, mapper:Fun) Source: stdlib.ngs:282
Transform mapper to handle only items matching predicate. Non-matching items will be returned as is. Example
["abc", 1, "def", 2].map(only(Int, X*2)) # ["abc", 2, "def", 4]