Morgengrauner Dokumentation
Dateipfad: /home/mud/mudlib/doc//efun/filterSYNOPSIS
mixed * filter(mixed *arg, string fun, string|object ob
, mixed extra...)
mixed * filter(mixed *arg, closure cl, mixed extra...)
mixed * filter(mixed *arg, mapping map, mixed extra...)
string filter(string arg, string fun, string|object ob
, mixed extra...)
string filter(string arg, closure cl, mixed extra...)
string filter(string arg, mapping map, mixed extra...)
mapping filter(mapping arg, string func, string|object ob
, mixed extra...)
mapping filter(mapping arg, closure cl, mixed extra...)
DESCRIPTION
Call the function ->() resp. the closure for
every element of the array, or mapping , and return a
result made from those elements for which the function call
returns TRUE. The arguments are passed as additional
parameters to the function calls and must not be references of
array of mapping elements (like &(i[1]) ).
If is omitted, or neither a string nor an object, it
defaults to this_object().
If is an array or struct, the function will be called with
each of the array/struct values as first parameter, followed by the
arguments. If the result from the function call is true,
the array element in question is included into the efun result.
If the efun is used with a mapping