function splitAtimport { splitAt } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.d.ts"; splitAt<T>(index: number, input: T[]): [T[], T[]]It splits string or array at a given index. splitAt(index: number, input: string): [string, string]splitAt(index: number): { <T>(input: T[]): [T[], T[]]; (input: string): [string, string]; }It splits string or array at a given index. Type ParametersTParametersindex: numberinput: T[]Returns[T[], T[]]Parametersindex: numberinput: stringReturns[string, string]Parametersindex: numberReturns{ <T>(input: T[]): [T[], T[]]; (input: string): [string, string]; }