Skip to content

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.

2 participants