function initimport { init } from "https://dotland.deno.dev/x/rambda@9.4.1/immutable.d.ts"; init<T extends readonly unknown[]>(input: T): T extends readonly [...infer U, any] ? U : readonly [...T]It returns all but the last element of list or string input. init(input: string): stringIt returns all but the last element of list or string input. Type ParametersT extends readonly unknown[]Parametersinput: TReturnsT extends readonly [...infer U, any] ? U : readonly [...T]Parametersinput: stringReturnsstring