
values(3)             LPC 系统函数             values(3)

名称
     values() - return an array of the values from the (key, value) pairs
                in a mapping

语法
     mixed *values( mapping m );

描述
     values() returns an array of  values  corresponding  to  the
     value  elements in the (key, value) pairs stored in the map-
     ping 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.

请参考
     keys(3), each(3)

MudOS                Last change: 5 Sep 1994                    1

