#40
Interpose a Seq
 

Difficulty:Easy
Topics:seqs core-functions


Write a function which separates the items of a sequence by an arbitrary value.
test not run
(= (__ 0 [1 2 3]) [1 0 2 0 3])
test not run
(= (apply str (__ ", " ["one" "two" "three"])) "one, two, three")
test not run
(= (__ :z [:a :b :c :d]) [:a :z :b :z :c :z :d])
Special Restrictions
  • interpose


  • Code which fills in the blank: