Some instantiates an [Option] with a value.
(value T)
| 38 | |
| 39 | // Some instantiates an [Option] with a value. |
| 40 | func Some[T any](value T) Option[T] { |
| 41 | return Option[T]{value, true} |
| 42 | } |
| 43 | |
| 44 | // None instantiates an [Option] with no value. |
| 45 | func None[T any]() Option[T] { |
no outgoing calls
no test coverage detected