import { reduce } from "https://deno.land/x/fun@v.2.0.0-alpha.11/option.ts";
Reduce over an Option. Since an Option contains at most one value this function operates a lot like getOrElse. If the passed option is None then it returns the initial value, otherwise the reducer function is called with both the initial value and the inner A.