News for hackers. Stuff that matters.
Re:Map.merge() – One method to rule them all by nayuki on Sunday March 31, 2019 @10:32AM (#19535766)
Funny you say that, because I find the key-sorted TreeMap to be useful in Java, but Python seems to have no equivalent.
Re:Map.merge() – One method to rule them all by karmakaze on Sunday March 31, 2019 @10:41AM (#19535822)
Python has OrderedDict.
Re:Map.merge() – One method to rule them all by detaro on Sunday March 31, 2019 @10:47AM (#19535852)
OrderedDict is ordered by order of insertion, TreeMap is ordered by key value.
Re:Map.merge() – One method to rule them all by karmakaze on Sunday March 31, 2019 @11:04AM (#19535928)
Logically equivalent to LinkedHashMap, thought it was the other. I should use Python more often.