I’ve been looking at functional programming recently. The ramda library is used.
But the use of various APIs is confusing.
var func3=_.compose(p,trace("f3:"), f);
var func4=_.filter(_.compose(p,trace("f4:"), f));
console.log(func3(3))//36
console.log(func4([3]))//[3] why? what happened
Ramda will be automatically curried, is it understandable?
func3(3)
returns 36, which is true, so filter it again and 3 is still there