import { when } from "https://deno.land/x/fuzzy_octo_guacamole@v5.0.1/patterns.ts";
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