blob: fc3149c48840a331d08434afe09cdbb93e602223 [file] [log] [blame]
Zesstrab6ac9f62020-01-21 11:11:16 +01001SYNOPSIS
Zesstra5481d492021-04-08 20:07:06 +02002 mixed * map_objects(object *arr, string fun, mixed extra, ...)
3 mixed * map_objects(lwobject *arr, string fun, mixed extra, ...)
4 mixed * map_objects(string *arr, string fun, mixed extra, ...)
MG Mud User88f12472016-06-24 23:31:02 +02005
Zesstra715ec202025-07-09 22:18:31 +02006DESCRIPTION
7 Similar to map(), but calls arr[n]->fun(extra,...). The returned value
8 replaces the object/string in returned array.
9 <arr> may contain a mixture of regular and lightweight objects and
10 object names as well.
Zesstra5481d492021-04-08 20:07:06 +020011
Zesstra715ec202025-07-09 22:18:31 +020012 Any number of extra arguments is allowed, which are all
13 passed. 0-entries in arr are ignored.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015SEE ALSO
Zesstrab6ac9f62020-01-21 11:11:16 +010016 map(E), filter(E), filter_objects(E)