Open
Description
In chapter 10 on part laws. there is a code that demonstrates "applicatives are close under composition".
const tOfM = compose(Task.of, Maybe.of);
liftA2(liftA2(concat), tOfM('Rainy Days and Mondays'), tOfM(' always get me down'));
// Task(Maybe(Rainy Days and Mondays always get me down))
I think we could remove liftA2 wrapper for concat
function, It's useless.
liftA2(concat, tOfM('Rainy Days and Mondays'), tOfM(' always get me down'));
Metadata
Assignees
Labels
No labels