Interface Sink<Source, R>

A "sink" is something that consumes (or drains) a source. It is a function that takes a source and iterates over it. It optionally returns a value.

interface Sink<Source, R> ((source) => R)

Type Parameters

  • Source
  • R = unknown