Couldn't you emulate this with a sliding window?
# stdlib
c
Couldn't you emulate this with a sliding window?