interpose (interpose sep coll) / (interpose sep) coll の seq ビューの要素の間に sep を挟んだ結果を返します。要素が1つなら 区切りは現れません。lazy な入力には lazy seq を、strict な入力には strict なリストを返します。値としては2引数のラムダです。 (interpose sep) はトランスデューサーを返します(値としても同じです)。 Run(println (interpose 0 [1 2 3])) ; (1 0 2 0 3) (println (take 4 (interpose 0 (iterate inc 1)))) ; (1 0 2 0) (println (into [] (interpose 0) [1 2 3])) ; [1 0 2 0 3]