def
func:matchPointVal
matchPointVal(val, match)
Return if a point value matches a given critera:
- match any values which are equal via
==
operator - zero matches false (0% ==> false)
- non-zero matches true (not 0% ==> true)
- numerics can be matches with range
- match can be a function which takes the value
Examples:
matchPointVal(false, false) >> true matchPointVal(0, false) >> true matchPointVal(33, false) >> false matchPointVal(33, true) >> true matchPointVal(33, 0..40) >> true matchPointVal(90, 0..40) >> false matchPointVal(4) x => x.isEven >> true