function first(stream) {
  const it = stream[Symbol.iterator]();
  const { value } = it.next();
  it.return?.();
  return value;
}
function consume(stream) {
  for (const _ of stream) ;
}
export {
  consume,
  first
};
//# sourceMappingURL=stream.js.map
