All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.hnau.jutils.ExtensionsForPair.kt Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package ru.hnau.jutils


inline fun  Pair.map(converter: (I) -> O) =
        Pair(converter.invoke(first), converter.invoke(second))

inline fun  Pair.forEach(action: (T) -> Unit) {
    action.invoke(first)
    action.invoke(second)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy