import { P } from "https://deno.land/x/fuzzy_octo_guacamole@v5.0.1/mod.ts";
const { when } = P;
P.when((value) => boolean)
returns a pattern which matches
if the predicate returns true for the current input.
Type Parameters
p extends (value: input) => unknown
Parameters
predicate: p