Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn flat [n]
- (let [[x & xs] n]
- (cond
- (empty? n) '()
- (coll? x) (concat (flat x) (flat xs))
- :else (cons x (flat xs)))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement