-
Couldn't load subscription status.
- Fork 104
Dictionary as Monad #448
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
base: master
Are you sure you want to change the base?
Dictionary as Monad #448
Conversation
e86178a to
c02d157
Compare
c02d157 to
25c00cd
Compare
|
One limitation with this implementation is that it would require the infinite dictionary to be in the first position of the applicative expression, otherwise it would try to iterate through an infinite dictionary. There are ways to improve this:
|
32f5c4a to
f2d1afd
Compare
5c69948 to
9ca5706
Compare
5b61ffc to
ad56a34
Compare
429e6fc to
8fb276c
Compare
018d7cb to
25c00cd
Compare
984e26f to
bfa151d
Compare
b64b3fc to
88bd6b9
Compare
|
I re-opened it just to experiment, but it doesn't mean that I'm proposing to merge it, as I still think it will break LSP. |
Co-authored-by: Hadrian Tang <[email protected]>
23de96a to
ebc40ef
Compare
2769fd0 to
221911c
Compare
5d8211a to
bf1d623
Compare
A sort of "infinite" dictionary would allow it to act as a Monad and Applicative.