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(List): add dropEq and without functions to List #183

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

Conversation

brekk
Copy link
Contributor

@brekk brekk commented Aug 8, 2024

Some convenience functions for List:

  • without drops any matching items
  • dropEq drops a single matching item

@brekk brekk requested a review from aboeglin August 8, 2024 23:57
@brekk
Copy link
Contributor Author

brekk commented Aug 17, 2024

This may not be needed:

  • dropEq - List.reject(equals(x))
  • without - List.reject(List.includes($, xs))

are equivalent, but the former requires a second import and was what prompted this

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.

1 participant