eclipse-collections
eclipse-collections copied to clipboard
#1640 Issue: added condition for empty list
This PR addresses the issue where takeWhile() and dropWhile() methods always return ImmutableArrayList.
Now, these methods return ImmutableEmptyList when applicable, improving the performance and correctness of the code.