using a binary tree container
spir
denis.spir at gmail.com
Fri Feb 11 12:27:03 PST 2011
On 02/11/2011 08:46 PM, Tom wrote:
> what with this?:
> auto arr = ["foo", "bar", "aaa", "zzz"];
> sort(arr);
> assert(canFind("foo"));
> assert(canFind("aaa"));
> assert(!canFind("aa"));
> I had a "Error 1 Error: module algorithem is in file 'std\algorithem.d' which
> cannot be read main.d "
> when I tried to compile, so I couldn't check it.
canFind is in std.algorithm: import it. (with the prefix "std.")
denis
--
_________________
vita es estrany
spir.wikidot.com
More information about the Digitalmars-d-learn
mailing list