merge

Merge two Aes structs

If it has similar named types, then it uses the second one.

Returns a new struct, with combined types.

template merge(T, U)
merge
(,)

Members

Functions

generateCode
auto generateCode()
Undocumented in source. Be warned that the author may not have intended to support it.
merge
auto merge(T base, U other)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

import std.range : front;

auto xs = ["a", "b"];
auto ys = ["c", "d"];
auto labels = ["e", "f"];
auto aes = Aes!(string[], "x", string[], "y", string[], "label")(xs, ys, labels);

auto nlAes = merge(aes, Aes!(NumericLabel!(string[]), "x",
    NumericLabel!(string[]), "y")(NumericLabel!(string[])(aes.x),
    NumericLabel!(string[])(aes.y)));

assertEqual(nlAes.x.front[0], 0);
assertEqual(nlAes.label.front, "e");

Meta