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

x/rambda/immutable.d.ts>symmetricDifference

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

It returns a merged list of x and y with all equal elements removed.

R.equals is used to determine equality.

Parameters

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

Returns

readonly T[]

Parameters

x: readonly T[]

Returns

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