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

> you always just take the (positive) index modulo the size of the area.

That's something I'd like in a bunch of languages - a real modulo operator that always returns between 0 and n, even for negative inputs, rather than a remainder operator that's advertised as a modulo operator. Grrrrr!!!!!



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

Search: