Function exactly

  • Takes a parser, runs it n times, and returns the results as an array. If it cannot run the parser n times, it fails without consuming input.

    Type Parameters

    • T

    Parameters

    • num: number

      number of times to run the parser

    • parser: Parser<T>

      parser to run

    Returns Parser<T[]>

    • parser that runs the given parser num times and returns an array of the results

Generated using TypeDoc