classes

internal fun Iterable<Any?>.classes(): Set<KClass<*>>

Returns a set containing the KClass of each element in the iterable.

This can be a heavy operation!

The KClass is determined by retrieving the runtime class of each element.

Nothing::class is used for elements that are null.

Return

A set of KClass objects representing the runtime types of elements in the iterable.