Closed ChristianGruen closed 1 year ago
EXPR ! (if(CONDITION) then THEN else ())
…can be rewritten to…
EXPR[CONDITION] ! THEN
…provided that a) the condition is not numeric and b) the condition and the branch are not positional. The following expressions are not equivalent:
(0 to 5) ! (if(.) then 1 else ()) (0 to 5)[.] ! 1 (0 to 5) ! (if(boolean(.)) then position() else ()) (0 to 5)[boolean(.)] ! position()
…can be rewritten to…
…provided that a) the condition is not numeric and b) the condition and the branch are not positional. The following expressions are not equivalent: