我有一个这种格式的序列-
( (2 3 4) ("hh“5))
我想把它展平,这样它就是一个向量序列,而不是一个向量序列。我该怎么做呢?
展平也完全展平它,我只想展平它一个级别到- (2 3 4 "hh“5)
发布于 2012-09-21 13:56:55
试试concat
(apply concat seq)发布于 2012-09-21 14:08:27
(reduce (fn[h v]
(reduce (fn[s e] (conj s e)) h v))
[] [[[2 3 4] [7 6 8]] [["hh" 5] [9 8]]])https://stackoverflow.com/questions/12524923
复制相似问题