tuple6<A, B, C, D, E, F> function

Parser<Tuple6<A, B, C, D, E, F>> tuple6<A, B, C, D, E, F>(
  1. Parser<A> a,
  2. Parser<B> b,
  3. Parser<C> c,
  4. Parser<D> d,
  5. Parser<E> e,
  6. Parser<F> f
)

A typed parser that parses a sequence of 6 values of different types.

Implementation

Parser<Tuple6<A, B, C, D, E, F>> tuple6<A, B, C, D, E, F>(Parser<A> a,
    Parser<B> b, Parser<C> c, Parser<D> d, Parser<E> e, Parser<F> f) {
  return chain([a, b, c, d, e, f]).map((r) {
    return Tuple6(r.value[0] as A, r.value[1] as B, r.value[2] as C,
        r.value[3] as D, r.value[4] as E, r.value[5] as F);
  });
}