import { concreteTake, TakeInternal } from "@effect/core/stream/Take/operations/_internal/TakeInternal" /** * Transforms `Take` to `Take` by applying function `f`. * * @tsplus static effect/core/stream/Take.Aspects map * @tsplus pipeable effect/core/stream/Take map */ export function map(f: (a: A) => B) { return (self: Take): Take => { concreteTake(self) return new TakeInternal(self._exit.map((chunk) => chunk.map(f))) } }