method O.mapimport { O } from "https://deno.land/x/ahh@v0.9.1/src/option/mod.ts"; map<T, U>(o: Option<T>, f: (_: T) => U): Option<U>Maps the contained Some value with f, otherwise None. Examples import { O, Some, None } from "./mod.ts"; console.log(O.map(1, (i) => i + 1)); // 2 console.log(O.map<number, number>(None, (i) => i + 1)); // undefined Type ParametersTUParameterso: Option<T>f: (_: T) => UReturnsOption<U>