Calling assumeSorted on const(std.container.Array)
Olivier Prat
o.prat at free.fr
Sat Mar 25 16:31:06 UTC 2023
On Saturday, 25 March 2023 at 13:45:36 UTC, Olivier Prat wrote:
> I'm trying to call assumeSorted on a const(Array) using this
> code snippet:
>
> [...]
In a similar fashion, a number of methods in SortedRange do not
compile if called on a const(SortedRange) or
immutable(SortedRange), such as length, or front. Is this on
purpose?
More information about the Digitalmars-d-learn
mailing list