<A>(self: Iterable<A>): Iterable<A>Repeats an iterable without an upper bound.
When to use
Use to cycle a reusable iterable without an upper bound when a downstream consumer controls how many values are taken.
Gotchas
The returned iterable is lazy and should usually be bounded with take or
another terminating consumer before materializing it.
Source effect/Iterable.ts:1691 lines
export const const forever: <A>(
self: Iterable<A>
) => Iterable<A>
Repeats an iterable without an upper bound.
When to use
Use to cycle a reusable iterable without an upper bound when a downstream
consumer controls how many values are taken.
Gotchas
The returned iterable is lazy and should usually be bounded with take or
another terminating consumer before materializing it.
forever = <function (type parameter) A in <A>(self: Iterable<A>): Iterable<A>A>(self: Iterable<A>self: interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A>(self: Iterable<A>): Iterable<A>A>): interface Iterable<T, TReturn = any, TNext = any>Iterable<function (type parameter) A in <A>(self: Iterable<A>): Iterable<A>A> => const repeat: <A>(self: Iterable<A>, n: number) => Iterable<A> (+1 overload)repeat(self: Iterable<A>self, var Infinity: numberInfinity)Referenced by 1 symbols