Should this work?

Jacob Carlborg doob at me.com
Sat Jan 25 03:22:58 PST 2014


On Saturday, 25 January 2014 at 10:15:30 UTC, Peter Alexander 
wrote:

> You always want the overload.
>
> If this works:
>
>     contains("hello", "el");
>
> then this should work:
>
>     contains([1, 2, 3, 4, 5], [2, 3]);
>
> Special cases are pure evil. There's nothing special about 
> strings in this case.

I agree. Since strings are just a kind of array, it would be 
stupid to not allow the above.

--
/Jacob Carlborg


More information about the Digitalmars-d mailing list