repeat -package:foundation -package:prelude-compat -package:streamly

repeat x is an infinite list, with x the value of every element.
>>> repeat 17
[17,17,17,17,17,17,17,17,17...
repeat x returns a constant stream, where all elements are equal to x.
repeat x is an infinite ByteString, with x the value of every element.
repeat x is an infinite ByteString, with x the value of every element.
repeat x is an infinite Text, with x the value of every element.
Produce an infinite stream consisting entirely of the given value. Subject to fusion
repeat x is an infinite list, with x the value of every element.
>>> take 20 $ repeat 17
[17,17,17,17,17,17,17,17,17...
Monadic repeat.
Repeat an element ad inf. .
>>> S.print $ S.take 3 $ S.repeat 1
1
1
1
repeat x is an infinite list, with x the value of every element.
An infinite list where each element is the same
repeat x is an infinite ByteStream, with x the value of every element.
>>> R.stdout $ R.take 50 $ R.repeat 60
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

>>> Q.putStrLn $ Q.take 50 $ Q.repeat 'z'
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
repeat x is an infinite ByteStream, with x the value of every element.
Produce an infinite stream.
Create a container with as many copies as possible of a given value. That is, for a container with fixed size n, the call repeat x will generate a container with n copies of x.
A repeat structure.
repeat x returns a constant stream, where all elements are equal to x.
An infinite list with all its elements equal to the given argument.
Define the fields that will be used to compose rows and columns of a set of small multiples. This is used where the encoding of the visualization in small multiples is largely identical, but the data field used in each might vary. When a list of fields is identified with repeat you also need to define a full specification to apply to each of those fields using asSpec. Unlike faceting, which creates multiple charts based on different values of a single field, repeating uses a different field for each chart. See the Vega-Lite documentation for further details.
toVegaLite
[ repeat [ColumnFields ["Cat", "Dog", "Fish"]]
, specification (asSpec spec)
]
See also repeatFlow.