Stream

duplicate/2

duplicate(elem, count)

Duplicates elem count times in a stream.

If count is 0, an empty stream is returned.