Hacker News new | past | comments | ask | show | jobs | submit
Depends on your definition of "work".

For me it does not work because I'd want to use it with values < 0, but the for loop checks for > 0, so I would have to modify that first.