distinct_array
ds2.10/lib/doc/sefun/distinct_array · 716 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
DISTINCT_ARRAY(1) DISTINCT_ARRAY(1)
NAME
distinct_array() - returns an array of distinct members
SYNOPSIS
mixed *distinct_array(mixed *arr)
DESCRIPTION
With the first argument of an array of any type, this
function will filter out duplicate members and return an
array with only unique members.
EXAMPLES
distinct_array(({ "a", "b", "c", "b", "d", "a" })) returns
({ "a", "b", "c", "d" })
NOTE
The order of the result array is NOT guaranteed.
LOCATION
/secure/sefun/distinct_array.c
SEE ALSO
exclude_array()
Author
Descartes of Borg
1