... since none of the conditions match. But it should probably be
3
... instead, since that corresponds to the expectation in the consequent flows for each of the conditions. This expectation is essentially encoded in the divert clause as the "type" or "meaning" of the switch expression.
This:
(switch (-5 3) (% 1> 2>) [positive? add1])
... produces
-5, 3
... since none of the conditions match. But it should probably be
3
... instead, since that corresponds to the expectation in the consequent flows for each of the conditions. This expectation is essentially encoded in the divert clause as the "type" or "meaning" of the
switch
expression.