Guest User

Untitled

a guest
Apr 20th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. (distinct? x)
  2. (distinct? x y)
  3. (distinct? x y & more)
  4.  
  5. (defn coll-distinct? [coll]
  6. (= (distinct coll) coll))
  7.  
  8. (apply distinct? [1 2 3 1])
  9. ; false
  10. (apply distinct? [1 2 3])
  11. ; true
Add Comment
Please, Sign In to add comment