some top-level property

Option<B> Function<B>(B value) some
final

An alias for of, used to wrap the given value.

This function provides a convenient way to wrap a given value, making it easier to use or represent in certain situations.

Example usage:

final wrappedValue = some<int>('Hello');  // This will wrap the 'Hello' value

Implementation

final some = of;