IsSome reports whether the optional contains a value.
()
| 37 | |
| 38 | // IsSome reports whether the optional contains a value. |
| 39 | func (o Optional[T]) IsSome() bool { return o.has } |
| 40 | |
| 41 | // IsNone reports whether the optional is empty. |
| 42 | func (o Optional[T]) IsNone() bool { return !o.has } |
no outgoing calls