List.opBinaryRight

Operator in

struct List
scope const
bool
opBinaryRight
(
string op
Elm
)
(
scope auto ref Elm elm
)
if (
op == "in"
)

Examples

List!(int) list = List!(int).build(1, 2, 3);

assert(1 in list);
assert(42L !in list);

Meta