arr.find() http://dpldocs.info/std.algorithm.find With arrays, you can call free functions with the dot member syntax so import std.algorithm and that just works.