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

replicateM n act performs the action n times, gathering the results.

Like replicateM, but discards the result.

replicateA is an Applicative version of replicate, and makes *O(log n)* calls to <*> and pure.
> replicateA n x = sequenceA (replicate n x)

replicateM is a sequence counterpart of replicateM.
> replicateM n x = sequence (replicate n x)

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