std-set-exclusive-or


Synopsis

(std-set-exclusive-or <lst1> <lst2>)

Description

STD-SET-EXCLUSIVE-OR returns the set of all elements that appear in exactly one of lst1 and lst2. A set is a list without defined order of elements. The returned list may have no defined order.

Example

(std-set-exclusive-or '(0 1 2) '(2 3 4)) => (0 1 3 4)

Arguments

lst1, lst2: proper lists, without defined order.

Return Value

A list of all elements in lst1 and lst2 which appear only once.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST