1
0
mirror of https://github.com/IBM/fp-go.git synced 2025-11-23 22:14:53 +02:00
Files
fp-go/v2/lazy/types.go
Dr. Carsten Leue aa5e908810 fix: introduce Kleisli type
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
2025-11-07 14:35:46 +01:00

10 lines
195 B
Go

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]
)