I know scala has a handly function for a collection called Sliding.
How would you manually write a function like this?
Is it possible to write this type of fun