mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-27 22:28:29 +02:00
fix: initial implementation of types
Signed-off-by: Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@@ -44,8 +44,3 @@ func BiMap[E, G, A, B any](mapSnd func(E) G, mapFst func(A) B) func(Tuple2[A, E]
|
||||
return MakeTuple2(mapFst(First(t)), mapSnd(Second(t)))
|
||||
}
|
||||
}
|
||||
|
||||
// Ap implements the applicative for a tuple carrying the function in its first parameter and the value in its second
|
||||
func Ap[A, B any](t Tuple2[func(A) B, A]) B {
|
||||
return t.F1(t.F2)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user