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

Function ExampleOption_IsAbsent_some

option_example_test.go:93–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func ExampleOption_IsAbsent_some() {
94 some := Some(42)
95 result := some.IsAbsent()
96
97 fmt.Println(result)
98 // Output: false
99}
100
101func ExampleOption_IsAbsent_none() {
102 none := None[int]()

Callers

nothing calls this directly

Calls 2

SomeFunction · 0.85
IsAbsentMethod · 0.80

Tested by

no test coverage detected