arraySink

Function from Array to void can be constructed from a Function to void.

  1. class ArraySink(A)
  2. auto arraySink(S sink)
    arraySink
    (
    S
    )
    ()
    if (
    is(S : Function!(A, void),
    A
    )
    )

Examples

import std.stdio, std.range, std.array;
RealFunction!(writeln!int).get.arraySink()(10.iota.array);

Meta