-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor parMapN functions, add parTupledN (#80)
* Deprecate parMapN ext fun, add explicit param Add parTupledN versions * Simplify Rx instance for Concurrent Fix Concurrent docs for parMapN and parTupledN Co-authored-by: danieh <danimontoya_86@hotmail.com> Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com>
- Loading branch information
1 parent
24fbb7a
commit 90f876d
Showing
15 changed files
with
892 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
arrow-libs/fx/arrow-fx-rx2/src/main/kotlin/arrow/fx/rx2/extensions/common.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package arrow.fx.rx2.extensions | ||
|
||
import arrow.core.Tuple2 | ||
import arrow.core.Tuple3 | ||
import io.reactivex.functions.BiFunction | ||
import io.reactivex.functions.Function3 | ||
|
||
internal fun <A, B> tupled2(): BiFunction<A, B, Tuple2<A, B>> = | ||
BiFunction { a: A, b: B -> Tuple2(a, b) } | ||
|
||
internal fun <A, B, C> tupled3(): Function3<A, B, C, Tuple3<A, B, C>> = | ||
Function3 { a: A, b: B, c: C -> Tuple3(a, b, c) } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.