Closed CrazyPython closed 8 years ago
trange API idea (overloaded):
trange(int stop) -> equiv to for (int i = 0; i < stop; ++i) trange(int start, int stop) -> equiv to for (int i = start; i < stop; ++i)
trange(int stop)
for (int i = 0; i < stop; ++i)
trange(int start, int stop)
for (int i = start; i < stop; ++i)
The names are completely arbitrary. It's the most intuitive from the outside perspective.
already have this. also start, stop, step.
trange API idea (overloaded):
trange(int stop)
-> equiv tofor (int i = 0; i < stop; ++i)
trange(int start, int stop)
-> equiv tofor (int i = start; i < stop; ++i)
The names are completely arbitrary. It's the most intuitive from the outside perspective.