![JAR search and dependency download from the Maven repository](/logo.png)
io.reactivex.rxkotlin.Maybes.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rxkotlin Show documentation
Show all versions of rxkotlin Show documentation
RxJava bindings for Kotlin
package io.reactivex.rxkotlin
import io.reactivex.Maybe
import io.reactivex.MaybeSource
import io.reactivex.functions.BiFunction
object Maybes {
inline fun zip(s1: MaybeSource, s2: MaybeSource, crossinline zipper: (T, U) -> R): MaybeSource
= Maybe.zip(s1,s2, BiFunction { t, u -> zipper.invoke(t, u) })
}
/**
* An alias to [Maybe.zipWith], but allowing for cleaner lambda syntax.
*/
inline fun Maybe.zipWith(other: MaybeSource, crossinline zipper: (T, U) -> R): Maybe
= zipWith(other, BiFunction { t, u -> zipper.invoke(t, u) })
© 2015 - 2025 Weber Informatics LLC | Privacy Policy