(
options: {
readonly initial: S
readonly maxCost: number
readonly cost: (s: S, input: In) => number
readonly body: (s: S, input: In) => S
}
)
| 1096 | |
| 1097 | /** @internal */ |
| 1098 | export const foldWeighted = <S, In>( |
| 1099 | options: { |
| 1100 | readonly initial: S |
| 1101 | readonly maxCost: number |
| 1102 | readonly cost: (s: S, input: In) => number |
| 1103 | readonly body: (s: S, input: In) => S |
| 1104 | } |
| 1105 | ): Sink.Sink<S, In, In> => |
| 1106 | foldWeightedDecompose({ |
| 1107 | ...options, |
| 1108 | decompose: Chunk.of |
| 1109 | }) |
| 1110 | |
| 1111 | /** @internal */ |
| 1112 | export const foldWeightedDecompose = <S, In>( |
no test coverage detected
searching dependent graphs…