Skip to content

pad an undersized first window with undefined#16

Closed
michaelficarra wants to merge 1 commit into
mainfrom
GH-13-padded
Closed

pad an undersized first window with undefined#16
michaelficarra wants to merge 1 commit into
mainfrom
GH-13-padded

Conversation

@michaelficarra
Copy link
Copy Markdown
Member

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: yield an undersized window when windows cannot yield at least 1 full one #15
  4. pad with undefined: this PR

Closes #13.

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