replicate w c = unfoldr w (\u -> Just (u,u)) cThis implemenation uses

replicate `n x` is a list of length `n` with
`x` the value of every element. It is an instance of the more
general genericReplicate, in which `n` may be of any
integral type.

Like replicateM, but discards the result.

replicateA is an Applicative version of
replicate, and makes <math> calls to liftA2 and
pure.

replicateA n x = sequenceA (replicate n x)

replicateM is a sequence counterpart of replicateM.
`base >= 4.8.0` and `containers >= 0.5.11`,
replicateM is a synonym for replicateA.

replicateM n x = sequence (replicate n x)For

The genericReplicate function is an overloaded version of
replicate, which accepts any Integral value as the
number of repetitions to make.

**Packages**- is:exact