asIterable

Common
JVM
JS
Native
1.2
fun <T> Array<out T>.asIterable(): Iterable<T>
fun ByteArray.asIterable(): Iterable<Byte>
fun ShortArray.asIterable(): Iterable<Short>
fun IntArray.asIterable(): Iterable<Int>
fun LongArray.asIterable(): Iterable<Long>
fun FloatArray.asIterable(): Iterable<Float>
fun DoubleArray.asIterable(): Iterable<Double>
fun BooleanArray.asIterable(): Iterable<Boolean>
fun CharArray.asIterable(): Iterable<Char>

Creates an Iterable instance that wraps the original array returning its elements when being iterated.

Common
JVM
JS
Native
1.2
fun <T> Iterable<T>.asIterable(): Iterable<T>

Returns this collection as an Iterable.

Common
JVM
JS
Native
1.2
fun <K, V> Map<out K, V>.asIterable(): Iterable<Entry<K, V>>

Creates an Iterable instance that wraps the original map returning its entries when being iterated.