Example Code. You can follow the examples below in Java or Clojure code. ... (defn mode [vals] (->> (frequencies vals) (sort-by (comp - second)) ffirst)).
確定! 回上一頁