I have my function that creates ranges:
const range = from => to => step => ....
And i want to create another function that do something with that range, but i want to use pipe.
For example i want to get the sum of the range.
const sum = ...
const getSum = pipe(
range(),
sum,
)
I can to the following:
const getSum = from => to => {
return sum(range(from)(to)(1))
}
But can I do it with ramdajs and to be point free.
For example:
const getSum = pipe(
range..///here,
sum
)
pipe, sum and range are my implementations.
But i am not sure how to do it point-free style.
Note that range is function that return function for easier currying.
range(0)(10)(1)
Thank you
More description:
Imagine i have count and split functions. This is regular function:
const numChars = str => count(split('', str))
This is point-free style (imag
const numChars = pipe(split(''), count)
I want to the the same but with the range above