replicate — The replicate function

Usage

replicate(n: Int, x: a) → List<a>

Arguments

n:

Number of times to replicate the object

x:

The object to replicate

Description

Produces a list of length n where every element is x.