Pointfree dynamic function composition
4
I'm trying to refactor this function to be pointfree.
function siblings(me) {
return R.pipe(family, R.reject(equalsMe(me)))(me);
}
I'd like to pass me
to a function down the pipe along with the value that family
returns.
Tried a few things with R.useWith
or R.converge
with R.identity
or R.__
(not even sure if I should be using that) but found nothing to work.
javascript functional-programming ramda.js pointfree
Add a comment
|