@@ -57,3 +57,14 @@ g f xs =
5757>>> g f2 [1,2,3,4::Int]
5858[("1",2,0.5),("2",3,1.0),("3",4,1.5),("4",5,2.0)]
5959```
60+
61+## Sliding Window
62+
63+```
64+>>> :{
65+ Stream.fromList [1,2,3,4,5::Int]
66+& Stream.scan (Array.writeLastN 2)
67+& Stream.toList
68+:}
69+[[],[1],[1,2],[2,3],[3,4],[4,5]]
70+```