Skip to content

Conversation

@aionescu
Copy link
Contributor

This PR makes the filtered, matching, and mapWith functions composable, such that when applied repeatedly, they combine their effects instead of overriding the previous applications.

I've updated the README to showcase a few examples, and added test cases for the new functionality.

I've also done some minor improvements to the code, e.g. removed the call to lib.toList (because flatten already does that if its input isn't a list), and replaced lib functions with their builtins equivalents (where applicable).

@vic
Copy link
Owner

vic commented Jun 22, 2025

Awesome! Looks good 👍

Thank you :)

@vic vic merged commit 39623fa into vic:main Jun 22, 2025
1 check passed
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