Skip to main content
Module

x/rambda/immutable.d.ts>move

Faster and smaller alternative to Ramda
Go to Latest
function move
import { move } from "https://deno.land/x/rambda@v7.0.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[]; }