2 ms·
We can get rid of these arrows using ramda's curried list functions, at the expense of being slower and harder to read but making us feel more clever: pipe(
by 1-more 7y ago
We can get rid of these arrows using ramda's curried list functions, at the expense of being slower and harder to read but making us feel more clever:
pipe(
range,
filter(pipe(
modulo(__, 3), // x => x % 3
equals(1) // y => y === 1
)),
map(flip(Math.pow)(2)),
sum
)(1,6)