[Issue 24081] [Function countUntil] countUntil is a terrible name
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Aug 11 20:04:43 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24081
--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
I dont fully agree, here is why:
```
template indexOf(T)
if (isRandomAccessRange!T)
{
alias indexOf = countUntil;
}
```
as you can see `indexOf` denotes _indexing_ capabilitites, but countUntil works
for all forward range.
--
More information about the Digitalmars-d-bugs
mailing list