Skip to content

feat(List): add dropEq and without functions to List - #183

Open
brekk wants to merge 1 commit into
masterfrom
list-without-dropeq
Open

feat(List): add dropEq and without functions to List#183
brekk wants to merge 1 commit into
masterfrom
list-without-dropeq

Conversation

@brekk

@brekk brekk commented Aug 8, 2024

Copy link
Copy Markdown
Contributor

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

brekk commented Aug 17, 2024

Copy link
Copy Markdown
Contributor Author

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