Skip to main content
Module

x/rambda/immutable.d.ts>prepend

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