I want to have a pipe that does some operations on a Maybe, and want to return its value at last. Currently I am doing:
const data = Maybe(5)
pipe(
map(add(1)),
... other operations
y => y.getOrElse([])
)(data)
Is there any cleaner way out?
The only improvement would be to create a pointfree helper function