Skip to main content
Module

x/hkts/fns.ts>intersect

Functional programming tools: option, either, task, state, optics, etc.
Latest
variable intersect
import { intersect } from "https://deno.land/x/hkts@v0.0.52/fns.ts";

Intersect

Takes two types and returns their intersection (if it is possible)


type

<A, B>(a: A, b: B) => A & B