timesSeparated<S> method

  1. @useResult
Parser<SeparatedList<R, S>> timesSeparated<S>(
  1. Parser<S> separator,
  2. int count
)

Returns a parser that consumes the receiver count times separated by the separator parser. The resulting parser returns a SeparatedList containing collections of both the elements of type R as well as the separators of type S.

Implementation

@useResult
Parser<SeparatedList<R, S>> timesSeparated<S>(
        Parser<S> separator, int count) =>
    repeatSeparated<S>(separator, count, count);