function swapimport { swap } from "https://dotland.deno.dev/x/rambda@9.4.1/mod.ts"; swap(indexA: number, indexB: number): <T>(list: T[]) => T[]swap<T>(indexA: number,indexB: number,list: T[],): T[]ParametersindexA: numberindexB: numberReturns<T>(list: T[]) => T[]Type ParametersTParametersindexA: numberindexB: numberlist: T[]ReturnsT[]