Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn my-flatten
- [x]
- (if (coll? (first x))
- (concat
- (my-flatten (first x))
- (my-flatten (rest x)))
- (conj (first x) (my-flatten (rest x)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement