// ets_tracing: off import * as O from "../../../Option/index.js" import type * as C from "./core.js" import * as Fold from "./fold.js" /** * Creates a sink containing the first value. */ export function head(): C.Sink> { return Fold.fold>(O.none, O.isNone, (s, in_) => O.fold_( s, () => O.some(in_), (_) => s ) ) }