fork(1) download
  1. import std.stdio;
  2. import std.algorithm;
  3.  
  4. string print(string s)
  5. {
  6. return `writeln(` ~ s ~ `);`;
  7. }
  8.  
  9. void main()
  10. {
  11. auto arr = [1, 2, 3, 4, 5];
  12.  
  13. mixin(print(`arr.map!(t => ++t)`)); // prints [1, 2, 3, 4, 5]
  14. }
Success #stdin #stdout 0s 4152KB
stdin
Standard input is empty
stdout
[2, 3, 4, 5, 6]