Documentation for Identity.ap doesn't work
shinynet opened this issue · 2 comments
shinynet commented
Describe the bug
Documentation code for Indentity.ap doesn't work.
To Reproduce
Documentation uses the following code
`
const prod = a => b => a * b
const double = prod(2)
Identity(double)
.ap(5)
`
which doesn't work when copied and pasted.
Expected behavior
Based on the documentation, I think the value 5 also needs to be wrapped in Identity (which also makes the code work)
dalefrancis88 commented
Thanks for raising that @devinholloway, i'll put a fix in for it now. You are correct, that should be Identity(5)
dalefrancis88 commented
Thanks again @devinholloway, this has now been merged to master and will be in the next release