eachLayer

open fun eachLayer(fn: (layer: Layer<*>) -> Unit, context: Any = definedExternally): LayerGroup

Iterates over the layers of the group, optionally specifying context of the iterator function.