Skip to content

Allow repeated applications of filtered, matching, and mapWith - #3

Merged
vic merged 2 commits into
denful:mainfrom
aionescu:compose-config
Jun 22, 2025
Merged

vic merged 2 commits into
denful:mainfrom
aionescu:compose-config

Conversation

@aionescu

Copy link
Copy Markdown
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

vic commented Jun 22, 2025

Copy link
Copy Markdown
Member

Awesome! Looks good 👍

Thank you :)

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