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

x/rambda/index.d.ts>move

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

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[]; }