Hyperlinkv0.8.0-beta.28

Sink

Sink.headconsteffect/Sink.ts:1415
<In>(): Sink<Option.Option<In>, In, In>

Creates a sink containing the first value.

Details

Returns Option.some(first) for non-empty input, or Option.none when the upstream ends without input. The first element is consumed; later elements from the same pulled array are emitted as leftovers.

constructors
Source effect/Sink.ts:14151 lines
export const head = <In>(): Sink<Option.Option<In>, In, In> => head_ as any