startsWith doesn't have an overload that takes only a predicate. The existing overloads all require at least one "needle" to search for in the "haystack." An overload that doesn't require a needle could certainly be added, but there isn't one right now.- Jonathan M Davis
https://github.com/D-Programming-Language/phobos/pull/3752