import { option } from "https://deno.land/x/fun@v2.0.0/mod.ts";
const { tryCatch } = option;
Take a function that can throw and wrap it in a try/catch block. Returns a new function that takes the same arguments as the original but returns the original value wrapped in an Option. If the function throws then the new function returns None, otherwise it returns Some.