mud/lib/doc/sefun/distinct_array
2020-09-06 05:43:07 -07:00

33 lines
716 B
Plaintext

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