Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/rambda.js>swap

Faster and smaller alternative to Ramda
Latest
function swap
import { swap } from "https://deno.land/x/rambda@9.3.0/rambda.js";

Parameters

indexA: number
indexB: number

Returns

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

Parameters

indexA: number
indexB: number
list: T[]