Dictionary as Monad#448
Draft
gusty wants to merge 21 commits into
Draft
Conversation
gusty
force-pushed
the
gusty-dict-applicative
branch
from
June 4, 2021 18:06
e86178a to
c02d157
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
from
June 4, 2021 18:10
c02d157 to
25c00cd
Compare
Member
Author
|
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:
|
gusty
force-pushed
the
master
branch
2 times, most recently
from
August 30, 2022 17:21
32f5c4a to
f2d1afd
Compare
gusty
force-pushed
the
master
branch
4 times, most recently
from
September 19, 2022 15:20
5c69948 to
9ca5706
Compare
gusty
force-pushed
the
master
branch
2 times, most recently
from
December 2, 2022 10:55
5b61ffc to
ad56a34
Compare
gusty
force-pushed
the
master
branch
12 times, most recently
from
February 22, 2023 07:30
429e6fc to
8fb276c
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
2 times, most recently
from
December 19, 2023 08:43
018d7cb to
25c00cd
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
from
December 19, 2023 09:10
984e26f to
bfa151d
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
from
December 19, 2023 09:27
b64b3fc to
88bd6b9
Compare
Happypig375
reviewed
Jun 13, 2025
Member
Author
|
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. |
gusty
force-pushed
the
gusty-dict-applicative
branch
from
June 14, 2025 09:40
23de96a to
ebc40ef
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
from
June 15, 2025 09:10
2769fd0 to
221911c
Compare
gusty
force-pushed
the
gusty-dict-applicative
branch
from
June 16, 2025 14:23
5d8211a to
bf1d623
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A sort of "infinite" dictionary would allow it to act as a Monad and Applicative.