Function List.opBinaryRight
Operator in
bool opBinaryRight(string op, Elm)
(
auto scope ref Elm elm
) const scope
if (op == "in");
Examples
List!(int) list = List!(int) .build(1, 2, 3);
assert(1 in list);
assert(42L !in list);