August 11, 2023 [Issue 24081] [Function countUntil] countUntil is a terrible name | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24081 --- Comment #1 from Basile-z <b2.temp@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. -- |
Copyright © 1999-2021 by the D Language Foundation