Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/optio/operators/extract.ts

Minimum option type port of Rust
Latest
import * as optio from "https://deno.land/x/optio@1.0.0/operators/extract.ts";

Functions

Returns the contained Some value.

Pattern matching for option. Match on matcher.Some if Some, otherwise match on matcher.None.

Returns the contained Some value.

Returns the contained Some value, otherwise defaultValue.

Returns the contained Some value, otherwise computes it from a closure.