mirror of
https://github.com/IBM/fp-go.git
synced 2025-11-23 22:14:53 +02:00
10 lines
195 B
Go
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]
|
||
|
|
)
|