skipOver.skipOver

  1. bool skipOver(Haystack haystack, Needles needles)
  2. bool skipOver(R r1)
  3. bool skipOver(R r, Es es)
    template skipOver(alias pred = (a, b) => a == b)
    bool
    skipOver
    (
    R
    Es...
    )
    (
    ref R r
    ,
    Es es
    )
    if (
    is(typeof(binaryFun!pred(r.front, es[0])))
    )

Parameters

es Es

The element to match.

Return Value

Type: bool

true if the prefix of haystack matches any range of needles fully or pred evaluates to true, and haystack has been advanced to the point past this segment; otherwise false, and haystack is left in its original position.

Note: By definition, empty ranges are matched fully and if needles contains an empty range, skipOver will return true.

Meta