blob: 1d368128a3b8448f0492b7f4f0ade6d567c17349 [file] [log] [blame]
Zesstrab6ac9f62020-01-21 11:11:16 +01001SYNOPSIS
Zesstra715ec202025-07-09 22:18:31 +02002 void walk_mapping(mapping m, string func, mixed extra,...)
3 void walk_mapping(mapping m, string func, string|object ob
4 , mixed extra,...)
5 void walk_mapping(mapping m, closure cl, mixed extra,...)
MG Mud User88f12472016-06-24 23:31:02 +02006
Zesstra715ec202025-07-09 22:18:31 +02007DESCRIPTION
8 Calls ob->func(key, &value1, ..., &valueN, extra,...) resp. applies
9 the closure to every entry in the mapping. The keys are passed
10 by value, the values are passed by reference and can be
11 changed in the function.
MG Mud User88f12472016-06-24 23:31:02 +020012
Zesstra715ec202025-07-09 22:18:31 +020013 Any number of extra arguments is accepted and passed.
MG Mud User88f12472016-06-24 23:31:02 +020014
Zesstra715ec202025-07-09 22:18:31 +020015 If <ob> is omitted, or neither a string nor an object, it
16 defaults to this_object().
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018HISTORY
19 Introduced in 3.2@61
MG Mud User88f12472016-06-24 23:31:02 +020020
Zesstra715ec202025-07-09 22:18:31 +020021SEE ALSO
Zesstrab6ac9f62020-01-21 11:11:16 +010022 map(E), filter(E)