As movingWindow but also allows access to context, namely you can access the window at any time without adding to it.
const window = movingWindowWithContext(3);window.seen(1); // [ 1 ]window.data; // [ 1 ] Copy
const window = movingWindowWithContext(3);window.seen(1); // [ 1 ]window.data; // [ 1 ]
As movingWindow but also allows access to context, namely you can access the window at any time without adding to it.