effect-io-ai

Package: effect
Module: Iterable

Iterable.repeat

Repeats an iterable n times, yielding the full contents of self for each repetition.

When to use

Use to repeat an iterable’s contents a specific number of times.

Details

The result is lazy. Each repetition obtains a new iterator from self.

See

Signature

declare const repeat: { (n: number): <A>(self: Iterable<A>) => Iterable<A>; <A>(self: Iterable<A>, n: number): Iterable<A>; }

Source

Since v4.0.0