module Iterable


The Iterable mixin provides convenience methods to collection classes that provide an #each method that returns an Iterator over the collection.

Direct including types

Defined in:

Instance Method Summary

Instance Method Detail

def cycle #

Same as each.cycle.

[View source]
def cycle(n) #

Same as each.cycle(n).

[View source]
abstract def each #

Must return an Iterator over the elements in this collection.

[View source]
def each_cons(count : Int) #

Same as each.cons(count).

[View source]
def each_slice(count : Int) #

Same as each.slice(count).

[View source]
def each_with_index(offset = 0) #

Same as each.with_index(offset).

[View source]
def each_with_object(obj) #

Same as each.with_object(obj).

[View source]