W3cubDocs

/D

std.experimental.all

Convenience file that allows to import entire Phobos in one command.

Examples:
import std.experimental.all;

int len;
const r = 6.iota
          .filter!(a => a % 2) // 1 3 5
          .map!(a => a * 2) // 2 6 10
          .tee!(_ => len++)
          .sum
          .reverseArgs!format("Sum: %d");

writeln(len); // 3
writeln(r); // "Sum: 18"
Examples:
import std.experimental.all;
writeln(10.iota.map!(partial!(pow, 2)).sum); // 1023

© 1999–2018 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/std_experimental_all.html