Let's say I have an array or list of words, something like this:
[The,Quick,Brown,Fox,Jumps,Over,The,Lazy,Dog]
I'd like to generate an array of arrays, with each array containing 3 of the words, but with a possible triplet for each one. so it should look something like this:
[The,Quick,Brown]
[Quick,Brown,Fox]
[Brown,Fox,Jumps]
and so on. What would be the best way to get this result?