Guest User

Untitled

a guest
Oct 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. (defn f [s p v] (filter #(s % p) v))
  2. (defn s [w]
  3. (if-let [p (first w)]
  4. (if-let [v (rest w)]
  5. (concat (s (f < p v)) [p] (s (f >= p v)))
  6. p)
  7. ()
  8. ))
Add Comment
Please, Sign In to add comment