Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. import std.stdio;
  2. import std.algorithm;
  3. import std.range;
  4.  
  5. void main()
  6. {
  7. // Let's get going!
  8. writeln("Hello World!");
  9.  
  10. // An example for experienced programmers:
  11. // Take three arrays, and without allocating
  12. // any new memory, sort across all the
  13. // arrays inplace
  14. int[] arr1 = [4, 9, 7];
  15. int[] arr2 = [5, 2, 1, 10];
  16. int[] arr3 = [6, 8, 3];
  17. sort(chain(arr1, arr2, arr3));
  18. writefln("%s\n%s\n%s\n", arr1, arr2, arr3);
  19. // To learn more about this example, see the
  20. // "Range algorithms" page under "Gems"
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement