Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.