I have no idea on how to use this Inherited functions loop through objects from the featureLayer.
the objects are poles from the featurelayer.
the docs lack a lot of explaining.
https://developers.arcgis.com/kotlin/api-reference/arcgis-maps-kotlin/com.arcgismaps.data/-feature-q...
The functions come from the Iterable interface. FeatureQueryResult inherits from FeatureSet, which inherits from Kotlin Iterable. Please see the Kotlin Iterable documentation.