Module

x/rambda/immutable.d.ts>union

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

It takes two lists and return a new list containing a merger of both list with removed duplicates.

R.equals is used to compare for duplication.

Parameters

x: readonly T[]
y: readonly T[]

Returns

readonly T[]

Parameters

x: readonly T[]

Returns

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