Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (let [coll [1 2 3 4 5 6 7 8] n 3]
- (loop [c coll r []]
- (if (empty? c)
- r
- (loop (drop (dec n) c) (conj r (first (drop (dec n) c)))))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement