Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If anyone is interested in a notation for this kind of integer ranges, the two different styles in the above example could be represented like this:

   /9..10\  : "short" interval : size 1 (hour)  ==  half-open interval [9..10)
 -|20..21|- :  "long" interval : size 2 (days)  ==  closed interval   [20..21]


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

Search: