Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

op in for collections?

Moderators: kris

Posted: 05/25/07 06:41:02

It would be nice if HashSet? and other collections supported opIn (or rather opIn_r) for testing whether elements are inside. I think 'if (10 in int_set) { ... }' is nicer and more D-like than if (int_set.contains(10)).

Author Message

Posted: 05/25/07 20:27:07

I agree. Would you mind creating a ticket for that, please? Can assign to me :)