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

feat: Add getAll, setAll, removeAll to List.Associative #2224

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

spotandjake
Copy link
Member

This adds getAll, setAll and removeAll to List.Associative

@spotandjake spotandjake self-assigned this Jan 3, 2025
@spotandjake spotandjake marked this pull request as ready for review January 3, 2025 09:00
stdlib/list.gr Outdated Show resolved Hide resolved
}
}
/**
* Creates a new list with all values in the list of key-value pairs that match the key replaced.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really sure how I feel about the setAll function tbh, not sure when you would want this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Me neither but I wanted the api's to match and I didn't see any harm in having it.

@ospencer
Copy link
Member

@spotandjake Can you rebase this?

@spotandjake spotandjake force-pushed the spotandjake-associative-all-query branch from 4b36f94 to c01de06 Compare January 17, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants