Command: values

NEST HelpDesk Command Index NEST Quick Reference

Name:
 values - Return array of values in a dictionary

Synopsis:
                            dict values -> array
   <> values -> [val1 ... valn]

Description:
   "values" converts the values in a given dictionary to an array.
   The order of elements is the same as for the "keys" command.

Parameters:
   dict is a dictionary which may be empty

Examples:
   << /a 1 /b 2>> values -> [1 2]

Diagnostics:
   no errors are issued.

Remarks:
   The commands "keys" and "values" return the same order of
   elements, when applied to the same dictionary. Apart from that,
   there is no particular order of elements in the returned array.
   
Author:
 Ruediger Kupper

   First Version: 27-jun-2008

SeeAlso:keys values <<>> cva cvdict
Source:
 /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/slidict.cc

NEST HelpDesk Command Index NEST Quick Reference

© 2000-2010 The NEST Initiative