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

fix: introduce Kleisli type

Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
Dr. Carsten Leue
2025-11-07 14:35:46 +01:00
parent b3bd5e9ad3
commit aa5e908810
90 changed files with 9616 additions and 5168 deletions

9
v2/lazy/types.go Normal file
View File

@@ -0,0 +1,9 @@
package lazy
type (
// Lazy represents a synchronous computation without side effects
Lazy[A any] = func() A
Kleisli[A, B any] = func(A) Lazy[B]
Operator[A, B any] = Kleisli[Lazy[A], B]
)