substitute

Similar to among but for set of replacements/substitutions substs.

Time-Complexity: O(1) thanks to D's switch guaranteeing O(1).

  1. Value substitute(Value value)
    template substitute(substs...)
    Value
    substitute
    (
    Value
    )
    (
    Value value
    )
    if (
    haveCommonType!(Value, substs)
    )
    if (
    (substs.length & 1) == 0 &&
    substs.length >= 2
    &&
    isExpressionTuple!substs
    &&
    )
  2. auto substitute(R r, Ss ss)
  3. template substitute(ss...)
  4. auto substitute(R r, Ss ss)

Members

Functions

substitute
Value substitute(Value value)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta