Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Applicative-apply should return an applicative #9

Merged
merged 2 commits into from
Nov 17, 2019

Conversation

AlexKnauth
Copy link
Contributor

In particular, the examples for the id applicative and monad should return id instances from apply.

(define (apply f xs)
  (id (base:apply (id-val f) (base:map id-val xs))))

In particular, the examples for the `id` applicative and monad should return `id` instances from `apply`.
@coveralls
Copy link

Coverage Status

Coverage decreased (-9.6%) to 90.397% when pulling b430ee5 on AlexKnauth:patch-1 into 9a3ec76 on lexi-lambda:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage decreased (-9.6%) to 90.397% when pulling b430ee5 on AlexKnauth:patch-1 into 9a3ec76 on lexi-lambda:master.

@AlexKnauth
Copy link
Contributor Author

This changes the documentation, but it does not change what a "proper" implementation of the applicative interface is. The test in tests/data/applicative.rkt stays the same; this PR only changes the documentation to follow that.

I don't know why coverage went down so much when I didn't change any tests or add any new lines of code.

@lexi-lambda lexi-lambda merged commit ac631f6 into lexi-lambda:master Nov 17, 2019
@lexi-lambda
Copy link
Owner

Thanks for this! Sorry for the delay.

@AlexKnauth AlexKnauth deleted the patch-1 branch November 17, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants