values.3

foundation2_fluffos_v1/lib/doc/driver/efuns/mappings/values.3 · 672 B

From the archive foundation2_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
.TH values 3 "5 Sep 1994" MudOS "LPC Library Functions"

.SH NAME
.nf
values() - return an array of the values from the (key, value) pairs
           in a mapping

.SH SYNOPSIS
mixed *values( mapping m );

.SH DESCRIPTION
values() returns an array of values corresponding to the value elements
in the (key, value) pairs stored in the mapping m.
.PP
For example, if:
.IP
.nf
mapping m;

m = (["hp" : 35, "sp" : 42, "mass" : 100]);
.fi
.PP
then
.IP
.nf
values(m) == ({35, 42, 100})
.fi
.PP
Note: the values will be returned in the same order as the corresponding
keys.

.SH SEE ALSO
keys(3), each(3)

Site Stats

Snippets: 1791
Codebases: 571