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

Add Agg.when operator #2535

Merged
merged 2 commits into from May 20, 2023
Merged

Add Agg.when operator #2535

merged 2 commits into from May 20, 2023

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented May 20, 2023

This is a super common operation to want in the builds i've come across: conditional scalac flags, conditional deps, conditional sources, etc. Better to have it built in as Agg.when(foo)("bar", "baz") rather than jumping through hoops with ++ (if (foo) Agg("bar", "baz") else Agg.empty)

@lihaoyi lihaoyi marked this pull request as ready for review May 20, 2023 23:31
@lihaoyi lihaoyi merged commit b8178b2 into com-lihaoyi:main May 20, 2023
32 of 33 checks passed
@lefou lefou added this to the 0.11.0-M10 milestone May 21, 2023
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.

None yet

2 participants