Module

x/rambda/rambda.js>move

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