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

x/rambda/mod.ts>append

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

It adds element x at the end of iterable.

Parameters

xToAppend: T
iterable: T[]

Parameters

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

Parameters

xToAppend: T

Returns

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

Parameters

xToAppend: T

Returns

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