The OpenD Programming Language

values

Returns a newly allocated dynamic array containing a copy of the values from the associative array.

  1. Value[] values(T aa)
    @property
    Value[]
    values
    (
    T : Value[Key]
    Value
    Key
    )
    (
    T aa
    )
  2. Value[] values(T* aa)

Parameters

aa T

The associative array.

Return Value

Type: Value[]

A dynamic array containing a copy of the values.

Examples

auto aa = ["k1": 1, "k2": 2];
int sum;
foreach (e; aa.values)
    sum += e;

assert(sum == 3);

Meta