#33
Replicate a Sequence
 

Difficulty:Easy
Topics:seqs


Write a function which replicates each element of a sequence a variable number of times.
test not run
(= (__ [1 2 3] 2) '(1 1 2 2 3 3))
test not run
(= (__ [:a :b] 4) '(:a :a :a :a :b :b :b :b))
test not run
(= (__ [4 5 6] 1) '(4 5 6))
test not run
(= (__ [[1 2] [3 4]] 2) '([1 2] [1 2] [3 4] [3 4]))
test not run
(= (__ [44 33] 2) [44 44 33 33])


Code which fills in the blank: