go-opt/optional_isnothing.go

6 lines
92 B
Go
Raw Normal View History

package opt
func (receiver Optional[T]) IsNothing() bool {
return !(receiver.something)
}