Compare commits

..

No commits in common. "main" and "v0.11.0" have entirely different histories.

View File

@ -29,12 +29,3 @@ func (option Option[T]) Exists () bool {
func (option Option[T]) Value () (T, bool) {
return option.value, option.exists
}
// Default returns the value if it exists, and the specified default value
// otherwise.
func (option Option[T]) Default(defaul T) T {
if value, ok := option.Value(); ok {
return value
}
return defaul
}