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

Method Map

typeclass/monadic.go:5–5  ·  view source on GitHub ↗
(func(T) T)

Source from the content-addressed store, hash-verified

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

Callers 4

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

Calls

no outgoing calls

Tested by 4

ExampleOption_Map_someFunction · 0.52
ExampleOption_Map_noneFunction · 0.52
ExampleResult_Map_okFunction · 0.52
ExampleResult_Map_errFunction · 0.52