Skip to content

array ngram type checker #9

Description

@leafo

If you have a flat array of items:

{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:

type.array_ngram(2, types.number / function(n) return n + 1 end)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions