wangzengdi
wangzengdi
2.4节 ```js const producer = new Producer(); const cold$ = new Observable(observer => {}) -> const hot$ = new Observable(...) ```
2.7节 到底使用那种 -> 哪种
3.2.2节 上面的代码中导入的模块是 **/observable/of.js -> 上面的代码中导入的模块是 **/operator/map.js
3.3.1 可以吐出和上游source$不同的数据,也可以吐出和source$不同的数据 -> 可以吐出和上游source$相同的数据,也可以吐出和source$不同的数据
Since Array(list) is not set, isSubset should use uniq and sort, like union and intersection.
``` js const isSubset = R.curry((set, subset) => { const sortU = R.compose(R.sort((a, b) => a - b), R.uniq); return R.equals(sortU(R.intersection(set, subset)), sortU(subset)); }); console.log(isSubset([1, 2], [1, 2, 3])); //...
another implementation: ``` const isSubset = R.compose(R.isEmpty, R.without); const set = [2, 1, 3, 1, 3]; const subset = [2, 2, 2, 1, 2]; console.log(isSubset(set, subset)); // true ```
OK, I will take a look at that repository to see what should I do.
I have just added some more description about `uncurryN` before: https://github.com/ramda/ramda/blob/d70b3cd6e59c4cffddb8a263712187995a63fe97/source/uncurryN.js#L6-L9 Maybe `manually` can be expanded as `accept only one argument each time` ?
It's on the master branch, maybe have not published in v0.27.0: https://github.com/ramda/ramda/blob/master/source/uncurryN.js