News for hackers. Stuff that matters.
Re:Map/Reduce for Mortals by 1-more on Wednesday January 15, 2020 @11:03AM (#22055356)
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)

There are no comments on this comment yet.