You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
var MapWithState = function(f, xf) {
return {
"@@transducer/init": function() {
return {wraps: xf["@@transducer/init"](), mystate: {...}};
},
"@@transducer/result": function(result) {
return xf["@@transducer/result"](result.wraps);
},
"@@transducer/step": function(result, input) {
return xf["@@transducer/step"](result.wraps, f(result.mystate, input));
}
};
};
... Ie -- in result and step, I am guaranteed to be passed back whatever I created, and I guarantee that I pass back the wrapped state to the next transformer? ... However this protocol is supposed to work it should be documented....
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I assume something like the following?
The text was updated successfully, but these errors were encountered: