IndexedFloatMapper

fun interface IndexedFloatMapper<in T>

Maps collection item metadata with index to a Float. Unlike (Int, T) -> Float, this compiles to a primitive float return and avoids boxing when invoked for every item.

Functions

Link copied to clipboard
abstract fun map(index: Int, item: T): Float