#39
Interleave Two Seqs
 

Difficulty:Easy
Topics:seqs core-functions


Write a function which takes two sequences and returns the first item from each, then the second item from each, then the third, etc.
test not run
(= (__ [1 2 3] [:a :b :c]) '(1 :a 2 :b 3 :c))
test not run
(= (__ [1 2] [3 4 5 6]) '(1 3 2 4))
test not run
(= (__ [1 2 3 4] [5]) [1 5])
test not run
(= (__ [30 20] [25 15]) [30 25 20 15])
Special Restrictions
  • interleave


  • Code which fills in the blank: