Guest User

Untitled

a guest
Mar 31st, 2020
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (def foo
  2.   [1 2 3 4])
  3.  
  4. (loop [zoo foo, res []]
  5.    (if (empty? zoo)
  6.      res
  7.      (let [x (vec (take 2 zoo))]
  8.        (recur (drop 2 zoo) (conj res x)))))
Advertisement
Add Comment
Please, Sign In to add comment