array :dict-values ( dict $DICT )
Takes a dictionary and returns an array containing all the values present in the dictionary.
Order of elements is the same as in :dict-keys
- values match keys at the indexes.
# Dictionary example. :set &D :dict s'one' s'eins' s'two' s'zwei' s'three' s'drei' :set &D[s'four'] s'vier' :set &K :dict-keys &D :set &V :dict-values &V :set &C i0 !while :lt $C :dict-count &D :writeln $K[$C] s' == ' $V[$C] :add &C i1 !done
wikistrona zmodyfikowana 2014/0601/2317