6 ms·
The only time `IsSet` would be false is when `NewOption` was not used to initialize the value. e.g. var o Option[int32] or could have `None` helper func
by hmmdar 5y ago
The only time `IsSet` would be false is when `NewOption` was not used to initialize the value.
e.g.
var o Option[int32]
or could have `None` helper
func None[T any]() Option[T] { return Option[T]{} }
o := None[int32]()