Search code examples
clojure

how to flatten a seq containing seq of vectors


I have a seq in this format -

( ([2 3 4] [7 6 8]) (["hh" 5] [9 8]))

I want to flatten it so that its a seq of vectors instead of a seq of seq of vectors. How do I do that ?

Also flatten completely flattens it, I want to only flatten it one level to - ([2 3 4] [ 7 6 8] ["hh" 5] [9 8])


Solution

  • Try concat:

    (apply concat seq)