tornadofx / tornadofx / kotlin.Array

Extensions for kotlin.Array

mapEach fun <T, R> Array<T>.mapEach(action: T.() -> R): <ERROR CLASS>

map with the element as receiver.

mapEachTo fun <T, R, C : MutableCollection<in R>> Array<T>.mapEachTo(destination: C, action: T.() -> R): <ERROR CLASS>

mapTo with the element as receiver.

toObservable fun Array<Int>.toObservable(): ObservableIntegerArray

Returns a new ObservableIntegerArray with the elements from the original array.

fun Array<Float>.toObservable(): ObservableFloatArray

Returns a new ObservableFloatArray with the elements from the original array.

withEach fun <T> Array<T>.withEach(action: T.() -> Unit): <ERROR CLASS>

forEach with the element as receiver.