function some
Since 0.1.0
some<T>(value: T): Some<T>

Creates an Option holding a value.

Type Parameters

The contained value type

Parameters

value: T

The value to wrap

Return Type

A Some option

Usage

import { some } from "common/src/index.ts";