How to smooth seq containing seq vectors

I have seq in this format -

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

I want to smooth it so that its seq vectors instead of seq from a vector vector. How can I do it?

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

+6
source share
2 answers

Try concat :

 (apply concat seq) 
+8
source
 (reduce (fn[hv] (reduce (fn[se] (conj se)) hv)) [] [[[2 3 4] [7 6 8]] [["hh" 5] [9 8]]]) 
+3
source

Source: https://habr.com/ru/post/925893/


All Articles