fork download
  1. import std.typecons;
  2. import std.stdio : writeln;
  3.  
  4. void main()
  5. {
  6. auto a = tuple(1, 2, 3);
  7. auto b = tuple(5, "hello", 'c');
  8. auto c = tuple(a.expand, b.expand);
  9.  
  10.  
  11. writeln(c);
  12. }
Success #stdin #stdout 0s 3768KB
stdin
Standard input is empty
stdout
Tuple!(int, int, int, int, string, char)(1, 2, 3, 5, "hello", 'c')