insert

Inserts a series to the associative array aa.

ref @property
@optmath
V[K]
insert
(
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.insert = s;
assert(a.series == series([1, 2, 3, 4], [3.0, 20, 30, 2]));

Meta