Module

x/rambda/index.d.ts>swap

Faster and smaller alternative to Ramda
Go to Latest
function swap
import { swap } from "https://dotland.deno.dev/x/rambda@v9.2.0/index.d.ts";

Parameters

indexA: number
indexB: number

Returns

<T>(list: T[]) => T[]

Parameters

indexA: number
indexB: number
list: T[]