sequence

fun <S, A> sequence(parsers: List<Parser<S, A>>): Parser<S, List<A>>

Creates a parser that matches a sequence of parsers.

Return

A parser that matches the sequence of parsers.

Parameters

parsers

The list of parsers to match in sequence.