Skip to content

Conversation

@GeorgCantor
Copy link

Description

Use of any: The any function checks if any element matches a given predicate. This allows us to stop processing as soon as a match is found, which is more efficient than creating a full list with map and then checking for containment with contains.

Type
Code health

Checklist

  • I have read and acknowledged the Code of conduct.
  • I have read the Contributing page.
  • I have signed the Google Individual CLA, or I am covered by my company's Corporate CLA.
  • I have discussed my proposed solution with code owners in the linked issue(s) and we have agreed upon the general approach.
  • I have run ./gradlew spotlessApply and ./gradlew spotlessCheck to check my code follows the style guide of this project.
  • I have run ./gradlew check and ./gradlew connectedCheck to test my changes locally.
  • I have built and run the demo app(s) to verify my change fixes the issue and/or does not break the demo app(s).

@GeorgCantor GeorgCantor requested a review from a team as a code owner December 29, 2024 20:07
@jingtang10 jingtang10 enabled auto-merge (squash) January 7, 2025 09:46
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