Affects Version/s: None
Fix Version/s: None
Patch:Code and Test
1. This currently doesn't work:
(r/reduce + 0))
The reason for this is that reducers created by r/reducer or r/folder, invoke -reduce (of IReduce) directly. They thereby bypass the special case for nil in the function r/reduce.
2. An entirely analogous problem exists for collections of type array.
3. The patch
CLJS-700 mistakenly defined coll-fold for the type cljs.core/IPersistentVector. This should have been cljs.core/PersistentVector. (There exists no protocol IPersistentVector in ClojureScript.)
I will shortly attach a patch that addresses all of the above problems by implementing IReduce for nil and array. The patch also includes unit tests.
|Priority||Major [ 3 ]||Minor [ 4 ]|