Skip to content

Add isEmpty and isNotEmpty utility methods#37

Open
Voltra wants to merge 2 commits intowinterbe:masterfrom
Voltra:feature/EMPTINESS
Open

Add isEmpty and isNotEmpty utility methods#37
Voltra wants to merge 2 commits intowinterbe:masterfrom
Voltra:feature/EMPTINESS

Conversation

@Voltra
Copy link

@Voltra Voltra commented Mar 25, 2024

This PR adds two new (terminal) methods:

  • isEmpty that checks whether the sequence contains absolutely no element
  • isNotEmpty that checks whether the sequence contains at least one element

Both are implemented in the laziest way possible and are compatible with (potentially) infinite sequences as their source.

@Voltra
Copy link
Author

Voltra commented Oct 22, 2025

Up? 🤞

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.

1 participant