Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn recursive-reverse [coll]
- (loop [coll coll
- acc []]
- (if (empty? coll)
- acc
- (recur (rest coll) (concat (list (first coll)) acc)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement