On Mon Dec 22 16:41:53 2008, zev wrote: > Oops. The last patch wasn't quite right. This one passes the tests > (which I found). I also added spectests that are marked TODO (but which > pass with this patch applied).
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. Pm