import { map } from "https://deno.land/x/domain_functions@v2.6.0/src/index.ts";
It takes a domain function and a predicate to apply a transformation over the result.data of that function. It only runs if the function was successfull. When the given domain function fails, its error is returned wihout changes.
Parameters
dfn: DomainFunction<O>