code: public static void times(Number self, @ClosureParams(value=SimpleType.class,options="int")  Closure closure) {
          for (int i = 0, size = self.intValue(); i < size; i++) {
              closure.call(i);
              if (closure.getDirective() == Closure.DONE) {
                  break;
              }
          }
      }
docs: Executes the closure this many times, starting from zero.  The current
  index is passed to the closure each time.
  Example:
  <pre>10.times {
  println it
  }</pre>
  Prints the numbers 0 through 9.
  
  @param self    a Number
  @param closure the closure to call a number of times
  @since 1.0