@blockchaincommons/dcbor-pattern - v1.0.0-beta.2
    Preparing search index...

    Variable ReluctanceConst

    Reluctance: { Greedy: "greedy"; Lazy: "lazy"; Possessive: "possessive" } = ...

    Reluctance for quantifiers: how greedily a quantified pattern consumes input.

    Controls how a quantified pattern matches:

    • Greedy: Match as many as possible, backtrack if needed
    • Lazy: Match as few as possible, add more if needed
    • Possessive: Match as many as possible, never backtrack

    Type Declaration

    • ReadonlyGreedy: "greedy"

      Grabs as many repetitions as possible, then backtracks if the rest of the pattern cannot match.

    • ReadonlyLazy: "lazy"

      Starts with as few repetitions as possible, adding more only if the rest of the pattern cannot match.

    • ReadonlyPossessive: "possessive"

      Grabs as many repetitions as possible and never backtracks; if the rest of the pattern cannot match, the whole match fails.