View difference between Paste ID: iYSdWJgZ and 3jJ3YPnv
SHOW: | | - or go back to the newest paste.
1
(defn my-flatten
2
   [x]
3
   (if (coll? (first x))
4-
     (append 
4+
     (concat
5
      (my-flatten (first x)) 
6
      (my-flatten (rest x)))
7
     (conj (first x) (my-flatten (rest x)))))