1 /++ 2 Convenience file that allows to import entire Phobos in one import. 3 +/ 4 module std; 5 6 /// 7 @safe unittest 8 { 9 import std; 10 11 int len; 12 const r = 6.iota 13 .filter!(a => a % 2) // 1 3 5 14 .map!(a => a * 2) // 2 6 10 15 .tee!(_ => len++) 16 .substitute(6, -6) // 2 -6 10 17 .sum 18 .reverseArgs!format("Sum: %d"); 19 20 assert(len == 3); 21 assert(r == "Sum: 6"); 22 } 23 24 /// 25 @safe unittest 26 { 27 import std; 28 assert(10.iota.map!(a => pow(2, a)).sum == 1023); 29 } 30 31 public import 32 std.algorithm, 33 std.array, 34 std.ascii, 35 std.base64, 36 std.bigint, 37 std.bitmanip, 38 std.checkedint, 39 std.compiler, 40 std.complex, 41 std.concurrency, 42 std.container, 43 std.conv, 44 std.csv, 45 std.datetime, 46 std.demangle, 47 std.digest, 48 std.encoding, 49 std.exception, 50 std.file, 51 std.format, 52 std.functional, 53 std.getopt, 54 std.int128, 55 std.json, 56 std.logger, 57 std.math, 58 std.mathspecial, 59 std.meta, 60 std.mmfile, 61 std.net.curl, 62 std.net.isemail, 63 std.numeric, 64 std.parallelism, 65 std.path, 66 std.process, 67 std.random, 68 std.range, 69 std.regex, 70 std.signals, 71 std.socket, 72 std.stdint, 73 std.stdio, 74 std.string, 75 std.sumtype, 76 std.system, 77 std.traits, 78 std.typecons, 79 std.uni, 80 std.uri, 81 std.utf, 82 std.uuid, 83 std.variant, 84 std.zip, 85 std.zlib;