Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
clojureハッシュマップで最大値の要素を見つける方法は?次のハッシュマップがあると仮定します。
{:a 1 :b 3 :c 4 :d 18 :e 9}
この場合、結果として:dが必要になります。
それがあなたの解決策だと思います
(key (apply max-key val {:a 1 :b 3 :c 4 :d 18 :e 9})) -> :d