On Tuesday, 31 December 2019 at 06:01:36 UTC, Paul Backus wrote:

countUntil operates on ranges, and static arrays aren't ranges. To get a range from a static array, you have to slice it with the `[]` operator:

    int i = info.doos[].countUntil(important_d);

(Why can't static arrays be ranges? Because ranges can shrink, via popFront, but a static array can never change its length.)

Aha, adding [] made the compiler happy.

Reply via email to