function whenimport { when } from "https://dotland.deno.dev/x/rambda@9.4.1/files/index.d.ts"; when<T, U>(predicate: (x: T) => boolean,whenTrueFn: (a: T) => U,input: T,): T | Uwhen<T, U>(predicate: (x: T) => boolean, whenTrueFn: (a: T) => U): (input: T) => T | Uwhen<T, U>(predicate: (x: T) => boolean): ((whenTrueFn: (a: T) => U) => (input: T) => T | U)Type ParametersTUParameterspredicate: (x: T) => booleanwhenTrueFn: (a: T) => Uinput: TReturnsT | UType ParametersTUParameterspredicate: (x: T) => booleanwhenTrueFn: (a: T) => UReturns(input: T) => T | UType ParametersTUParameterspredicate: (x: T) => booleanReturns((whenTrueFn: (a: T) => U) => (input: T) => T | U)