top | item 29584465

(no title)

hmmdar | 4 years 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]()

discuss

order

No comments yet.