kotlin.collections.Iterable

Iterable

interface Iterable<out T>

Classes that inherit from this interface can be represented as a sequence of elements that can be iterated over.

Parameters

T - the type of element being iterated over. The iterator is covariant on its element type.

Functions

iterator

abstract operator fun iterator(): Iterator<T>

Retur