Most of Effect
's functions center around the first argument being the Effect
or 'data' to be worked on. However, this can lead to readability issues when calling multiple functions in a row.
Take these 3 simple functions:
const increment = (x: number) => x + 1
const double = (x: number) => x * 2
const subtractTen = (x: number) => x - 10