Skip to content
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.

Browser version through exception #34

Open
toastman opened this issue Mar 3, 2016 · 0 comments
Open

Browser version through exception #34

toastman opened this issue Mar 3, 2016 · 0 comments

Comments

@toastman
Copy link

toastman commented Mar 3, 2016

When i try to run example from documentations

`var t = transducers;
var inc = function(n) { return n+1; };
var isEven = function(n) { return n % 2 == 0; };
var apush = function(arr,x) { arr.push(x); return arr; };
var xf = t.comp(t.map(inc),t.filter(isEven));

console.log(
t.transduce(xf, apush, [], [1,2,3,4])
); `

I had exception
TypeError: t.comp is not a function

If i changed t.comp to t.compose

Error: don't know how to iterate collection: function (r) { var value = r; for(var i=funcs.length-1; i>=0; i--) { value = funcs[i](value); } return value; }

I've installed transducers-js via bower (version 0.4.174)

What i missed ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant