function papplyRestimport { papplyRest } from "https://deno.land/x/dom_diff@1.0.0-beta.2/deps.ts"; papplyRest<H, T extends readonly unknown[], U extends readonly unknown[], R>(fn: (...args: readonly [H, ...T, ...U]) => R, ...tail: T): (head: H, ...rest: U) => RCreate a bound function with fixed arguments except the first one. ExamplesExample 1 import { papplyRest } from "https://deno.land/x/curry@$VERSION/mod.ts"; declare const fn: (a: string, b: number, c: boolean) => void; const binary = papplyRest(fn, 0); const unary = papplyRest(fn, 0, false); Type ParametersHT extends readonly unknown[]U extends readonly unknown[]RParametersfn: (...args: readonly [H, ...T, ...U]) => R...tail: TReturns(head: H, ...rest: U) => R