( s: S, contFn: Predicate<S>, f: (s: S, input: In) => S )
| 809 | |
| 810 | /** @internal */ |
| 811 | export const fold = <S, In>( |
| 812 | s: S, |
| 813 | contFn: Predicate<S>, |
| 814 | f: (s: S, input: In) => S |
| 815 | ): Sink.Sink<S, In, In> => suspend(() => new SinkImpl(foldReader(s, contFn, f))) |
| 816 | |
| 817 | /** @internal */ |
| 818 | const foldReader = <S, In>( |