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

Function ExampleOption_IsPresent_some

option_example_test.go:77–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75}
76
77func ExampleOption_IsPresent_some() {
78 some := Some(42)
79 result := some.IsPresent()
80
81 fmt.Println(result)
82 // Output: true
83}
84
85func ExampleOption_IsPresent_none() {
86 none := None[int]()

Callers

nothing calls this directly

Calls 2

SomeFunction · 0.85
IsPresentMethod · 0.80

Tested by

no test coverage detected