std-remove-duplicates


Synopsis

(std-remove-duplicates <lst>)

Description

STD-REMOVE-DUPLICATES returns a list without all duplicate elements. It is not destructive, it always returns a copy. The new list is created out of all first occurences of the elements. All duplicates after the first are removed. The original order stays intact.

Example

(std-remove-duplicates '(0 1 0 2 2)) 
=> (0 1 2)

Arguments

lst: any proper list.

Return Value

A list.

Side Effects

None.

Module

(std-require 'STDLIST)

Defined in STDLIST