Lookahead-while

Issue #9 new
Ivan Tkatchev repo owner created an issue

while and until should have versions that operate on the next element, non-destructively.

(Perhaps the best way to do this is a version of pairs where the second element is a peek from the sequence; the ‘end-of-sequence’ sentinel should be configurable.)

Comments (0)

  1. Log in to comment