Skip to content

KECS / com.juanmedina.kecs.entity / View / pairs

pairs

fun <reified T :Any, reified K :Any> pairs():List<Pair<T, K>>

Return a set of Pair from the components of the given type.

This could be use for destructing declarations.

inline fun <reified T :Any, reified K :Any> pairs(receiver: (Pair<T, K>) ->Unit):Unit

Send a set of Pair from the components of the given type to a receiver.

This could be use for destructing declarations.

Parameters

receiver - function that will receive the pairs.