Skip to content

yield an undersized window when windows cannot yield at least 1 full one#15

Closed
michaelficarra wants to merge 3 commits into
mainfrom
GH-13-undersized
Closed

yield an undersized window when windows cannot yield at least 1 full one#15
michaelficarra wants to merge 3 commits into
mainfrom
GH-13-undersized

Conversation

@michaelficarra
Copy link
Copy Markdown
Member

@michaelficarra michaelficarra commented May 13, 2025

This is one of four possible behaviours.

  1. yield no values (empty iterator): current behaviour
  2. throw on .next(): throw on .next() when windows cannot yield at least 1 full window #14
  3. yield a single undersized window: this PR
  4. pad with undefined: pad an undersized first window with undefined #16

Closes #13.

Comment thread spec.emu Outdated
Comment thread spec.emu Outdated
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
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.

behavior of .windows when window size exceeds iterator length

2 participants