Skip to content

Conversation

@iliagon
Copy link

@iliagon iliagon commented Nov 21, 2025

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.

This PR is based on winterbe/sequency#37 and adapted to the current project structure.


This PR description was generated by AI using GitHub MCP

@iliagon iliagon merged commit b5ed046 into master Nov 21, 2025
1 check passed
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.

3 participants