Skip to content
Prev 166001 / 398502 Next

if statement

Duncan Murdoch wrote:
or using Petr's hint:

C <- (A<X|A>Y)*A

which seems much faster on substantial inputs.

pay attention to whether your 'in between' is inclusive or not; the two
versions above are not equivalent.

vQ