Open
Description
import csp, {go, chan} from 'js-csp';
let {fromColl, into, pipeline} = csp.operations;
import xd from 'transducers.js';
// the regular transducer works fine
console.log(xd.seq([1, 2, 3, 4, 5], xd.drop(2)))
// outputs [3, 4, 5]
// but not when used with a channel
go(function*(){
var c = chan();
pipeline(c, xd.drop(2), fromColl([1, 2, 3, 4, 5]));
var res = yield into([], c);
console.log(res);
// expected - [3, 4, 5]
// actual - []
})
Metadata
Metadata
Assignees
Labels
No labels