On Monday, 21 October 2019 at 20:44:29 UTC, Nicholas Wilson wrote:
works, so I guess contains doesn't work with immutable?
If you can do some more research into this and confirm it then,
please file a bug report.
As I understand - yes. It doesn't work with immutable object.
Also I see the same
On Monday, 21 October 2019 at 10:14:54 UTC, Andrey wrote:
Hello,
I have got a global constant immutable array:
immutable globalvalues = sort(cast(wstring[])["й", "ц", "ук",
"н"]);
Somewhere in program I want to check an existance:
globalvalues.contains("ук"w).writeln;
But get an error:
Erro
Hello,
I have got a global constant immutable array:
immutable globalvalues = sort(cast(wstring[])["й", "ц", "ук",
"н"]);
Somewhere in program I want to check an existance:
globalvalues.contains("ук"w).writeln;
But get an error:
Error: template std.range.SortedRange!(wstring[], "a <
b").Sor