Function flatten1

  • This overload makes a Matcher that flattens an array of values or value arrays returned by a given Matcher.

    Implementation is based on map.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • p: Matcher<TToken, TOptions, (TValue | TValue[])[]>

      A matcher.

    Returns Matcher<TToken, TOptions, TValue[]>

  • Make a parser that flattens an array of values or value arrays returned by a given parser.

    Implementation is based on map.

    Type Parameters

    • TToken

    • TOptions

    • TValue

    Parameters

    • p: Parser<TToken, TOptions, (TValue | TValue[])[]>

      A parser.

    Returns Parser<TToken, TOptions, TValue[]>

Generated using TypeDoc