Sliding / Sliding Window, a Scala language concept
Last updated
Get fixed-length sliding sub-sequences (sliding windows) from another sequence
Note that if the length of the input list is less than the sliding window, then the whole input list will be returned)
For Iterators
It even works on Iterators: