Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
77
func
ExampleOption_IsPresent_some() {
78
some := Some(42)
79
result := some.IsPresent()
80
81
fmt.Println(result)
82
// Output: true
83
}
84
85
func
ExampleOption_IsPresent_none() {
86
none := None[int]()
Callers
nothing calls this directly
Calls
2
Some
Function · 0.85
IsPresent
Method · 0.80
Tested by
no test coverage detected