some<T> function

Option<T> some<T>(
  1. T value
)

Returns an Option that resolves to a Some, which wraps the given value. Represents a value that does exist.

Implementation

Option<T> some<T>(T value) => Some(value);