Official protocol for transducers based on this spec.
where p
is the protocol.
const Reduced = value => {
return {
[p.value]: value,
[p.reduced]: true
}
}
const transformer = () => {
return {
[p.init]: init ? () => init : notSupported,
[p.step]: step,
[p.result]: identity
}
}
- protocol.init
- protocol.step
- protocol.result
- protocol.reduced
- protocol.value
MIT, see license.md for details.