sequency icon indicating copy to clipboard operation
sequency copied to clipboard

Add `isEmpty` and `isNotEmpty` utility methods

Open Voltra opened this issue 1 year ago • 0 comments

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 avatar Mar 25 '24 15:03 Voltra