mirror of
https://github.com/IBM/fp-go.git
synced 2025-06-25 00:36:54 +02:00
16 lines
439 B
Go
16 lines
439 B
Go
![]() |
package generic
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
E "github.com/ibm/fp-go/either"
|
||
|
ET "github.com/ibm/fp-go/either"
|
||
|
EQ "github.com/ibm/fp-go/eq"
|
||
|
G "github.com/ibm/fp-go/readerioeither/generic"
|
||
|
)
|
||
|
|
||
|
// Eq implements the equals predicate for values contained in the IOEither monad
|
||
|
func Eq[GRA ~func(context.Context) GIOA, GIOA ~func() E.Either[error, A], A any](eq EQ.Eq[ET.Either[error, A]]) func(context.Context) EQ.Eq[GRA] {
|
||
|
return G.Eq[GRA](eq)
|
||
|
}
|