Whenever I tried to use console.log reducers were acting weirdly, for example:
After some investigation I've realized that stderr from reducer processes was being mixed with stdout (which was the main issue) and also that pretty printing was misbehaving when stdout contained anything other than the reduced object.
So, I've cleaned up the code a little and now it works like this:
Also, reducers now can return an object regardless of whether console.log was used or not. It looks like this:
I had a problem with piping
fx
toxargs
, specifically things like this weren't working properly:Whenever I tried to use
console.log
reducers were acting weirdly, for example:After some investigation I've realized that stderr from reducer processes was being mixed with stdout (which was the main issue) and also that pretty printing was misbehaving when stdout contained anything other than the reduced object.
So, I've cleaned up the code a little and now it works like this:
Also, reducers now can return an object regardless of whether
console.log
was used or not. It looks like this: