import { partition } from "https://deno.land/x/fun@v2.0.0/option.ts";
Given a refinement or predicate, return a function that splits an Option into a Pair<Option, Option>. Due to the nature of the option type this will always return Pair<Some, None>, Pair<None, None>, or Pair<None, Some>.
Type Parameters
B extends A
Parameters
refinement: Refinement<A, B>