There is no way to do this in a single function call if you want slices to return as vectors. In two calls it is still not possible if you really want the fragments (created by subvec ); otherwise you could use
(mapv vec (partition 3 1 [1 2 3 4 5]))
to get new regular vectors. Without mapv vec you would get a seqs section.
source share