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

x/rambda/rambda.js>move

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

It returns a copy of list with exchanged fromIndex and toIndex elements.

Parameters

fromIndex: number
toIndex: number
list: T[]

Parameters

fromIndex: number
toIndex: number

Returns

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

Parameters

fromIndex: number

Returns

{ <T>(toIndex: number, list: T[]): T[]; (toIndex: number): <T>(list: T[]) => T[]; }