The OpenD Programming Language

Tuple.this

Constructor taking one value for each field.

  1. this(Types values)
    struct Tuple
    static if(Types.length > 0)
    this
  2. this(U[n] values)
  3. this(U another)

Parameters

values Types

A list of values that are either the same types as those given by the Types field of this Tuple, or can implicitly convert to those types. They must be in the same order as they appear in Types.

Examples

alias ISD = Tuple!(int, string, double);
auto tup = ISD(1, "test", 3.2);
assert(tup.toString() == `Tuple!(int, string, double)(1, "test", 3.2)`);

Meta