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