1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-25 22:21:49 +02:00
Files
fp-go/readerio/eq.go

12 lines
276 B
Go
Raw Normal View History

package readerio
import (
EQ "github.com/IBM/fp-go/eq"
G "github.com/IBM/fp-go/readerio/generic"
)
// Eq implements the equals predicate for values contained in the IO monad
func Eq[R, A any](e EQ.Eq[A]) func(r R) EQ.Eq[ReaderIO[R, A]] {
return G.Eq[ReaderIO[R, A]](e)
}