#2179 Int.times doc

SlimerDude Sun 4 Aug 2013

It'd be helpful if the docs for sys::Int.times indicated if the counter was 0 or 1 based, for I wasn't sure if 3.times |i| would give an i of 0, 1, 2 or 1, 2, 3. A simple example would suffice:

Call the specified function to this times passing the current counter.

3.times |i| { echo(i) } // --> 0, 1, 2

brian Mon 12 Aug 2013

good idea, pushed fix

Login or Signup to reply.