Zesstra | b6ac9f6 | 2020-01-21 11:11:16 +0100 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 5481d49 | 2021-04-08 20:07:06 +0200 | [diff] [blame] | 2 | 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 User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 5 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 6 | DESCRIPTION |
| 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. |
Zesstra | 5481d49 | 2021-04-08 20:07:06 +0200 | [diff] [blame] | 11 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 12 | Any number of extra arguments is allowed, which are all |
| 13 | passed. 0-entries in arr are ignored. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 14 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 15 | SEE ALSO |
Zesstra | b6ac9f6 | 2020-01-21 11:11:16 +0100 | [diff] [blame] | 16 | map(E), filter(E), filter_objects(E) |