amplifier

Undocumented in source. Be warned that the author may not have intended to support it.
amplifier
(
Sg
F
)
(
Sg sg
,)

Examples

auto arr4 = [0, 1, 2, 3].repeatStream,
     amped = arr4.amplifier(4);

assert(amped.read(new int[4]) == [0, 4, 8, 12]);
static assert(isInplaceComputableStream!(typeof(arr4)));
static assert(isInplaceComputableStream!(typeof(amped), "*"));
static assert(isInplaceComputableStream!(typeof(amped), "/"));

auto arr = [3, 4, 1, 2];
assert(amped.readOp!"*"(arr) == [0, 16, 8, 24]);

Meta