diff options
author | Som Snytt <som.snytt@gmail.com> | 2015-05-27 12:07:10 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2015-05-27 12:07:10 -0700 |
commit | 5b02bb4f8993f8e09ff1223fbdd4acf78eabd964 (patch) | |
tree | d336bf1633a7e63dcdc8b3370da05c1422ef6ddc /gitconfig.SAMPLE | |
parent | 15ca0b31afecfa24686c7a650f550ba5fcac1f03 (diff) | |
download | scala-5b02bb4f8993f8e09ff1223fbdd4acf78eabd964.tar.gz scala-5b02bb4f8993f8e09ff1223fbdd4acf78eabd964.tar.bz2 scala-5b02bb4f8993f8e09ff1223fbdd4acf78eabd964.zip |
SI-9332 Iterator.span exhausts leading iterator
Since the leading and trailing iterators returned by span
share the underlying iterator, the leading iterator must
flag when it is exhausted (when the span predicate fails)
since the trailing iterator will advance the underlying
iterator.
It would also be possible to leave the failing element in
the leading lookahead buffer, where it would forever fail
the predicate, but that entails evaluating the predicate
twice, on both enqueue and dequeue.
Diffstat (limited to 'gitconfig.SAMPLE')
0 files changed, 0 insertions, 0 deletions