import { concreteTArray } from "@effect/core/stm/TArray/operations/_internal/InternalTArray" /** * Collects all elements into a chunk. * * @tsplus getter effect/core/stm/TArray toChunk */ export function toChunk(self: TArray): USTM> { concreteTArray(self) return STM.forEach(self.chunk, (tref) => tref.get) }