1
0
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:
Carsten Leue
2023-08-22 22:34:05 +02:00
parent a390d53451
commit 0f061a5099
28 changed files with 11655 additions and 11068 deletions

View File

@@ -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)
}