MCPcopy
hub / github.com/samber/mo / Monadic

Interface Monadic

typeclass/monadic.go:3–7  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package typeclass
2
3type Monadic[T any] interface {
4 ForEach(func(T))
5 Map(func(T) T) T
6 FlatMap(func(T) Monadic[T]) T
7}

Callers 8

ExampleOption_Map_someFunction · 0.65
ExampleOption_Map_noneFunction · 0.65
ExampleResult_Map_okFunction · 0.65
ExampleResult_Map_errFunction · 0.65
ExampleResult_FlatMap_okFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected