seq9<R1, R2, R3, R4, R5, R6, R7, R8, R9> function

  1. @useResult
Parser<(R1, R2, R3, R4, R5, R6, R7, R8, R9)> seq9<R1, R2, R3, R4, R5, R6, R7, R8, R9>(
  1. Parser<R1> parser1,
  2. Parser<R2> parser2,
  3. Parser<R3> parser3,
  4. Parser<R4> parser4,
  5. Parser<R5> parser5,
  6. Parser<R6> parser6,
  7. Parser<R7> parser7,
  8. Parser<R8> parser8,
  9. Parser<R9> parser9,
)

Creates a Parser that consumes the 9 parsers passed as argument in sequence and returns a Record with 9 positional parse results.

For example, the parser seq9(char('a'), char('b'), char('c'), char('d'), char('e'), char('f'), char('g'), char('h'), char('i')) returns ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i') for the input 'abcdefghi'.

Implementation

@useResult
Parser<(R1, R2, R3, R4, R5, R6, R7, R8, R9)>
    seq9<R1, R2, R3, R4, R5, R6, R7, R8, R9>(
  Parser<R1> parser1,
  Parser<R2> parser2,
  Parser<R3> parser3,
  Parser<R4> parser4,
  Parser<R5> parser5,
  Parser<R6> parser6,
  Parser<R7> parser7,
  Parser<R8> parser8,
  Parser<R9> parser9,
) =>
        SequenceParser9<R1, R2, R3, R4, R5, R6, R7, R8, R9>(parser1, parser2,
            parser3, parser4, parser5, parser6, parser7, parser8, parser9);