isAmong

  1. bool isAmong(Value value)
    template isAmong(values...)
    bool
    isAmong
    (
    Value
    )
    (
    Value value
    )
    if (
    haveCommonType!(Value, values)
    )
    if (
    isExpressionTuple!values &&
    values.length != 0
    )
  2. bool isAmong(Value value, Values values)

Members

Functions

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

Return Value

true iff value is equal to any of values, false otherwise.

Examples

assert(`b`.isAmong!(`a`, `b`));
assert(!`c`.isAmong!(`a`, `b`));

Meta