exclude_array
ds2.10/lib/doc/sefun/exclude_array · 966 B
From the archive ds2.10.zip
Download the archive « Back to the archive contents
EXCLUDE_ARRAY(1) EXCLUDE_ARRAY(1)
NAME
exclude_array() - excludes 1 or more elements from an
array
SYNOPSIS
varargs mixed *exclude_array(mixed *array, int from, int
to)
DESCRIPTION
Given any type of an array as a first argument, this
sefun will return a different array with the elements
from the element in the second argument up to the elements
in the third argument removed from the original. If the
third argument is omitted, then only the element in the
second argument will be omitted.
EXAMPLES
o exclude_array(({ "a", "b", "c" }), 1) returns ({ "a",
"c" })
o exclude_array(({ "a", "b", "c", "d" }), 1, 2) returns
({ "a", "d" })
LOCATION
/secure/sefun/exclude_array.c
SEE ALSO
distinct_array()
Author
Descartes of Borg
1