import * as tsplus_module_1 from "@tsplus/stdlib/data/Maybe/definition";
import * as tsplus_module_2 from "@effect/core/stream/Sink/operations/foldLeft";
/**
 * Creates a sink containing the last value.
 *
 * @tsplus static ets/Sink/Ops last
 */

export function last(__tsplusTrace) {
  return tsplus_module_2.foldLeft(() => tsplus_module_1.emptyOf(), (_, input) => tsplus_module_1.some(input), __tsplusTrace);
}
//# sourceMappingURL=last.mjs.map