Stutter#
Write a function stutter
that takes a list and repeats each element, e.g., stutter([1,2,3])
should yield [1,1,2,2,3,3]
.
Write a function stutter
that takes a list and repeats each element, e.g., stutter([1,2,3])
should yield [1,1,2,2,3,3]
.