go-opt/optional_issomething.go

6 lines
91 B
Go
Raw Normal View History

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