import { fromNullable } from "https://deno.land/x/fun@v2.0.0/option.ts";
The fromNullable function takes a potentially null or undefined value and maps null or undefined to None and non-null and non-undefined values to Some<NonNullable>.
Parameters
a: A