The OpenD Programming Language

insertOrAssign

Inserts or assigns a series to the associative array aa.

ref @property
V[K]
insertOrAssign
(
V
K
IndexIterator
Iterator
size_t N
SliceKind kind
)
(
return ref V[K] aa
,
auto ref Series!(IndexIterator, Iterator, N, kind) series
)

Parameters

aa V[K]

associative array

series Series!(IndexIterator, Iterator, N, kind)

series

Return Value

Type: V[K]

associative array

Examples

auto a = [1: 3.0, 4: 2.0];
auto s = series([1, 2, 3], [10, 20, 30]);
a.insertOrAssign = s;
assert(a.series == series([1, 2, 3, 4], [10.0, 20, 30, 2]));

Meta