0

Is there a clojure function to do:

((1 2) (3) (5 1) (2)) => (1 2 3 5 1 2)

(def a-list '((1 2) (3) (5 1) (2)))
(my-func a-list)
   ;; =>(1 2 3 5 1 2)
Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105
Raphael Boukara
  • 398
  • 3
  • 11

2 Answers2

4
(apply concat a-list) ;; (1 2 3 5 1 2)
Diego Basch
  • 12,764
  • 2
  • 29
  • 24