Skip to content

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.

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