values

final_realms_fluffos_v1/lib/doc/driver/efuns/mappings/values · 633 B

From the archive final_realms_fluffos_v1.zip

Download the archive   « Back to the archive contents

.\"return an array of the values from the (key, value) pairs in a mapping
.DT
values
Discworld driver help
values

Name
.SI 5
values() - return an array of the values from the (key, value) pairs in a
mapping

.EI
Synopsis
.SI 5
mixed *
values(mapping m)

.EI
Description
.SP 5 5
values() returns an array of values corresponding to the value elements
in the (key, value) pairs stored in the mapping m.

For example, if:

   mapping m;

   m = (["hp" : 35, "sp" : 42, "mass" : 100]);

then

   values(m) == ({35, 42, 100})

Note: the values will be returned in the same order as the corresponding
keys.

.EP
See also
.SI 5
keys()
.EI

Site Stats

Snippets: 1791
Codebases: 571