Module

x/rambda/immutable.d.ts>prepend

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

It adds element x at the beginning of list.

Parameters

xToPrepend: T
iterable: readonly T[]

Returns

readonly T[]

Parameters

xToPrepend: T
iterable: readonly IsFirstSubtypeOfSecond<T, U>[]

Returns

readonly U[]

Parameters

xToPrepend: T

Returns

<U>(iterable: readonly IsFirstSubtypeOfSecond<T, U>[]) => readonly U[]

Parameters

xToPrepend: T

Returns

(iterable: readonly T[]) => readonly T[]