@effect-ts/system
Version:
Effect-TS is a zero dependency set of libraries to write highly productive, purely functional TypeScript at scale.
13 lines (10 loc) • 325 B
text/typescript
// ets_tracing: off
import * as CK from "../../../../Collections/Immutable/Chunk/index.js"
import * as CH from "../../Channel/index.js"
import * as C from "../core.js"
/**
* Repeats the provided value infinitely.
*/
export function repeat<A>(a: A): C.UIO<A> {
return new C.Stream(CH.repeated(CH.write(CK.single(a))))
}