tuple7<A, B, C, D, E, F, G> function

Parser<Tuple7<A, B, C, D, E, F, G>> tuple7<A, B, C, D, E, F, G>(
  1. Parser<A> a,
  2. Parser<B> b,
  3. Parser<C> c,
  4. Parser<D> d,
  5. Parser<E> e,
  6. Parser<F> f,
  7. Parser<G> g
)

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

Implementation

Parser<Tuple7<A, B, C, D, E, F, G>> tuple7<A, B, C, D, E, F, G>(
    Parser<A> a,
    Parser<B> b,
    Parser<C> c,
    Parser<D> d,
    Parser<E> e,
    Parser<F> f,
    Parser<G> g) {
  return chain([a, b, c, d, e, f, g]).map((r) {
    return Tuple7(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, r.value[6] as G);
  });
}