The sliding_window function is pretty neat. One of the cases that I sometimes encounter benefit from having a function like that. Though sometimes I need some sort of boundary condition as well. For instance adding a constant to the boundaries. The function pad proposed in PR ( #340 ) would go well with this use case. Though I wanted to see if there was interest in having sliding window function with a constant boundary condition.