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

Reply via email to