|
|
|
|
|
by IshKebab
1199 days ago
|
|
> Sets and Maps are sorted (by insertion order) That's not what a "sorted set" is. C++ and Rust provide sets (and maps) that sort based on an arbitrary comparison operator. > ? ? > but someone will likely be exhausted by that addition I suppose. I guess it's one of those things that they really should have got right the first time. Like String.replaceAll(). I guess they will never add String.replaceAllSafe() - well just have to rely on linters to tell us that the API is terrible forever. |
|