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

Add strict foldlWithKeyM #795

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

andrewthad
Copy link

Resolves #793

This is just the implementation of a single monadic fold. @treeowl if you confirm that this implementation of this particular function looks good, I can add all of the lazy folds and the right folds as well

@andrewthad andrewthad mentioned this pull request Aug 16, 2021
@andrewthad
Copy link
Author

@treeowl Do you have any feedback on this?

@treeowl
Copy link
Contributor

treeowl commented Aug 25, 2021 via email

@andrewthad
Copy link
Author

I've changed this in the most recent commit. I think I'll have:

  • left monadic fold on map
  • right monadic fold on map
  • left monadic fold on intmap
  • right monadic fold on intmap

Anything else you'd like to see in that list.

@treeowl
Copy link
Contributor

treeowl commented Aug 25, 2021 via email

@andrewthad
Copy link
Author

I live in Atlanta, so all the truly good pizza is a ways up the east coast from me.

@treeowl
Copy link
Contributor

treeowl commented Aug 25, 2021 via email

@ocramz
Copy link

ocramz commented Jan 3, 2023

@treeowl This seems like an uncontroversial (and welcome) addition, how can we move this PR forward?

@andrewthad
Copy link
Author

Is there anything I can do to move this forward?

@treeowl
Copy link
Contributor

treeowl commented Aug 16, 2023

I got sick a few weeks ago, and then went on family vacation. I expect to be ready to get back to my GitHub backlog by next Thursday. If this is ready for review, could you mark it as such?

@andrewthad
Copy link
Author

I've squashed and rebased. This adds foldlWithKeyM and foldrWithKeyM functions for the Data.Map data structure, both of which are lazy in the accumulator. It's ready for review.

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.

Add foldlWithKeyM
3 participants