SHARE
TWEET

Untitled

a guest Mar 21st, 2019 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (select-first #(> % 10) (range))
  2. => 11
  3.      
  4. (some #(when (> % 10) %) (range)) ;; => 11
  5.      
  6. (first (filter #(> % 10) (range))) ;; => 11
  7.      
  8. (first (remove #(<= % 10) (range))) ;; => 11
  9.      
  10. (some #(when-not (<= % 10) %) (range)) ;; => 11
  11.      
  12. user=> (->> (range) (filter #(> % 10)) first)
  13. 11
  14. user=> (first (filter #(> % 10) (range)))
  15. 11
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top