ref2<T, A1, A2> function

Parser<T> ref2<T, A1, A2>(
  1. Parser<T> function(
    1. A1,
    2. A2
    ),
  2. A1 arg1,
  3. A2 arg2
)

Reference to a production function parametrized with 2 arguments.

See ref0 for a detailed description.

Implementation

Parser<T> ref2<T, A1, A2>(
  Parser<T> Function(A1, A2) function,
  A1 arg1,
  A2 arg2,
) =>
    ReferenceParser<T>(function, [arg1, arg2]);