import { flatmap } from "https://deno.land/x/fun@v2.0.0/option.ts";
Apply a function (a: A) => Option to the wrapped value of an Option if the wrapped value exists, flattening the application result into an Option. This is the equivalent of first mapping from Option to Option<Option> and then calling join to flatten the Options.