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

x/rambda/immutable.d.ts>move

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

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

Parameters

fromIndex: number
toIndex: number
list: readonly T[]

Returns

readonly T[]

Parameters

fromIndex: number
toIndex: number

Returns

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

Parameters

fromIndex: number

Returns

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