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

IsTrueForAny() incorrectly warns that it creates a new copy of the array without modifying the original #511

Open
SlenderFox opened this issue Dec 21, 2024 · 1 comment
Labels
bug Something isn't working lsp / user experience

Comments

@SlenderFox
Copy link

IsTrueForAny() applies a boolean condition onto an array and returns true if any of the elements returned true. While true it does not modify the original, it also does not return a copy.

image

@CactusPuppy CactusPuppy added bug Something isn't working lsp / user experience labels Dec 21, 2024
@Syvul
Copy link

Syvul commented Jan 5, 2025

While true it does not modify the original, it also does not return a copy.

image
Yes it evaluates on the copy internally, and leaves the original unchanged, IsTrueForAny as well as IsTrueForAll just return a boolean. Though it does this regardless of evaluating on true or false, the default return internally of these functions should be also false not true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working lsp / user experience
Projects
None yet
Development

No branches or pull requests

3 participants