Hacker News new | past | comments | ask | show | jobs | submit login

1 < i < 1 is also ugly. Better to write false, or remove that conditional entirely.

And then, once you remove empty ranges, there's no reason to to choose a range style based on which you prefer for an empty range.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: