import * as tsplus_module_1 from "@tsplus/stdlib/collections/Chunk/collect";
import * as tsplus_module_2 from "@effect/core/stream/Channel/operations/mapOut";
import { concreteStream, StreamInternal } from "@effect/core/stream/Stream/operations/_internal/StreamInternal";
/**
 * Performs a filter and map in a single step.
 *
 * @tsplus fluent ets/Stream collect
 */

export function collect_(self, pf, __tsplusTrace) {
  void 0;
  return new StreamInternal(tsplus_module_2.mapOut_(self.channel, chunk => tsplus_module_1.collect_(chunk, pf)));
}
/**
 * Performs a filter and map in a single step.
 *
 * @tsplus static ets/Stream/Aspects collect
 */

export const collect = (pf, __tsplusTrace) => self => collect_(self, pf, __tsplusTrace);
//# sourceMappingURL=collect.mjs.map