How about a Hash template?

Torarin torarind at gmail.com
Thu Apr 28 19:27:32 PDT 2011


2011/4/29 Alexander <aldem+dmars at nk7.net>:
> On 28.04.2011 21:46, Timon Gehr wrote:
>
>> Why is 'in' not currently defined on arrays? To me it seems like a left-out that
>> should be fixed, because it has quite obvious and useful semantics.
>
>  +1. It would be very useful and convenient this way, especially if search will be optimized to series of comparisons for small item count.
>
>  Perhaps we should file a feature request? :)
>
> /Alexander
>

This has been discussed before, see:
http://www.mail-archive.com/digitalmars-d@puremagic.com/msg38779.html

Torarin


More information about the Digitalmars-d mailing list