MCPcopy Create free account
hub / github.com/apache/groovy / step

Method step

src/main/java/groovy/lang/Range.java:95–95  ·  view source on GitHub ↗

Steps through the range, calling a closure for each item. @param step the amount by which to step. If negative, steps through the range backwards. @param closure the Closure to call

(int step, Closure closure)

Source from the content-addressed store, hash-verified

93 * @param closure the {@link Closure} to call
94 */
95 void step(int step, Closure closure);
96
97 /**
98 * Forms a list by stepping through the range by the indicated interval.

Implementers 4

NumberRangesrc/main/java/groovy/lang/NumberRange.
IntRangesrc/main/java/groovy/lang/IntRange.jav
EmptyRangesrc/main/java/groovy/lang/EmptyRange.j
ObjectRangesrc/main/java/groovy/lang/ObjectRange.

Calls

no outgoing calls