Patrick (>): > I would prefer to see this done by using a smart match on the :x() > argument instead of explicitly checking it for a Range and grabbing > min/max from there. Using a smart match would allow things like > :x(1|5|7) and :x({ .is_prime }) to work properly.
We might as well add spectests for that before closing this bug. (I made an attempt, but it turned out I wasn't awake enough to write junction and closure tests yet. Someone else is welcome to try.)