1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-23 22:14:53 +02:00

fix: introcuce readeioresult

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-10 18:44:14 +01:00
parent 2db7e83651
commit 62fcd186a3
27 changed files with 3239 additions and 18 deletions

View File

@@ -116,7 +116,7 @@ func FromEither[S, R, E, A any](ma Either[E, A]) StateReaderIOEither[S, R, E, A]
func Local[S, E, A, B, R1, R2 any](f func(R2) R1) func(StateReaderIOEither[S, R1, E, A]) StateReaderIOEither[S, R2, E, A] {
return func(ma StateReaderIOEither[S, R1, E, A]) StateReaderIOEither[S, R2, E, A] {
return function.Flow2(ma, readerioeither.Local[R1, R2, E, Pair[S, A]](f))
return function.Flow2(ma, readerioeither.Local[E, Pair[S, A]](f))
}
}