1.2.0 permalink Arrow_down_16x16
  • (all-greatest-by f & args)
Return all the elements for which f yields the greatest value.

1 Example top

  • ;; define an anonymous 
    ;; function which divides 
    ;; 30 by the value of the argument
    user=> (all-greatest-by #(/ 30 %) 
              10 20 40)
    (10)
    
Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/greatest_least.clj:47 top

(defn all-greatest-by
  "Return all the elements for which f yields the greatest value."
  [f & args]
  (apply boundary-all pos? f args))
Vars in clojure.contrib.greatest-least/all-greatest-by: apply defn pos?
Used in 0 other vars

Comments top

No comments for all-greatest-by. Log in to add a comment.