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

x/rambda/immutable.d.ts>append

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

It adds element x at the end of iterable.

Parameters

xToAppend: T
iterable: readonly T[]

Returns

readonly T[]

Parameters

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

Returns

readonly U[]

Parameters

xToAppend: T

Returns

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

Parameters

xToAppend: T

Returns

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