On Tue, 24 Feb 2009, Jon Lang wrote: > $y ± 5 # same as ($y - 5) | ($y + 5) > $y within 5 # same as ($y - 5) .. ($y + 5)
I suspect that we're running against Huffman here, given the likely usage -- ranges *should* be used at pretty much every floating point "equality" test, whereas "any(-x,+x)" would mostly be useful for expressing solutions to polynomials. Perhaps we could define infix:± as a range generator and prefix:± as a set generator: $y + ±5 # same as ($y - 5) | ($y + 5) (also same as $y - ±5) $y ± 5 # same as ($y - 5) .. ($y + 5) -Martin