Alvaro Blazquez checa
11/02/2021, 9:50 AMgetResultFromDatabase().tap { result ->
log(result)
}.map { result ->
transformDatabaseResult()
}
Alvaro Blazquez checa
11/02/2021, 9:51 AMAlvaro Blazquez checa
11/02/2021, 9:51 AMsimon.vergauwen
11/02/2021, 10:31 AMtap
and tapLeft
available on Either
for example. It should also be present on the other data types, if not feel free to create a ticket or raise a PR 😉
https://github.com/arrow-kt/arrow/blob/main/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/Either.kt#L853Alvaro Blazquez checa
11/02/2021, 12:16 PMcarbaj0
11/02/2021, 3:12 PMtap
function, I always have been using map
...simon.vergauwen
11/02/2021, 3:14 PM