If you have a flat array of items: ```lua {1,2,2,3,4,5} ``` And you want to match for every n items starting from every position that yields n items. This will add 1 to every that comes after 2: ```lua type.array_ngram(2, types.number / function(n) return n + 1 end) ```