Files
lo/docs/data/it-repeat.md
T
2025-10-08 14:55:05 +02:00

436 B

name, slug, sourceRef, category, subCategory, signatures, playUrl, variantHelpers, similarHelpers, position
name slug sourceRef category subCategory signatures playUrl variantHelpers similarHelpers position
Repeat repeat it/seq.go#L384 it sequence
func Repeat[T lo.Clonable[T]](count int, initial T) iter.Seq[T]
it#slice#repeatby
core#slice#repeat
core#slice#repeatby
75

Creates a sequence that repeats the initial value count times.

result := it.Repeat(3, "hello")
// ["hello", "hello", "hello"]