Sink

public enum Sink

A namespace for types and convenience methods related to sinks.

For details on sinks, see SinkProtocol.

  • Declaration

    Swift

    @inlinable
    public static func collect<T>(itemType _: T.Type = T.self) -> _Private.Collect<T>
  • Declaration

    Swift

    @inlinable
    public static func collect<S>(_ initialElements: S) -> _Private.Collect<S.Element> where S : Sequence