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

> Do x and y have to be arrays?

Nope. Ranges are anything enumerable (can run an iterator through it by calling begin()/end() to get the boundaries), so you can do lists, arrays, generators etc.




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

Search: