associate With To
inline fun <V, M : MutableMap<in Byte, in V>> ByteBuffer.associateWithTo(destination: M, valueSelector: (Byte) -> V): M
Content copied to clipboard
inline fun <V, M : MutableMap<in Short, in V>> ShortBuffer.associateWithTo(destination: M, valueSelector: (Short) -> V): M
Content copied to clipboard
inline fun <V, M : MutableMap<in Int, in V>> IntBuffer.associateWithTo(destination: M, valueSelector: (Int) -> V): M
Content copied to clipboard
inline fun <V, M : MutableMap<in Long, in V>> LongBuffer.associateWithTo(destination: M, valueSelector: (Long) -> V): M
Content copied to clipboard
inline fun <V, M : MutableMap<in Float, in V>> FloatBuffer.associateWithTo(destination: M, valueSelector: (Float) -> V): M
Content copied to clipboard
inline fun <V, M : MutableMap<in Double, in V>> DoubleBuffer.associateWithTo(destination: M, valueSelector: (Double) -> V): M
Content copied to clipboard
Populates and returns the destination mutable map with key-value pairs for each element of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
If any two elements are equal, the last one overwrites the former value in the map.
Samples
kool.buffers.Collections.Transformations.associateWithTo
inline fun <V, M : MutableMap<in Char, in V>> CharBuffer.associateWithTo(destination: M, valueSelector: (Char) -> V): M
Content copied to clipboard
Populates and returns the destination mutable map with key-value pairs for eachBuffer of the given array, where key is the element itself and value is provided by the valueSelector function applied to that key.
Samples
kool.buffers.Collections.Transformations.associateWithTo