extend "in" to all array types

luka8088 luka8088 at owave.net
Wed Jan 15 23:28:50 PST 2014


On 15.1.2014. 16:30, pplantinga wrote:
> In python, I really like the ability to check if an element is in an array:
> 
> if x in array:
>   # do something
> 
> D has this, but only for associative arrays. Is there any chance we
> could extend this to every kind of array?

D array uses this operator for checking against array keys, not values.



More information about the Digitalmars-d mailing list