import { O } from "https://deno.land/x/ahh@v0.10.0/mod.ts";
Calls f
with opt
, and returns the original
opt
.
Examples
import { O, None } from "./mod.ts";
console.log(O.inspect(1, (i) => i + 1)); // 1
console.log(O.inspect(None, (i: number) => i + 1)); // undefined