ref1<T, A1> function Null safety

Parser<T> ref1<T, A1>(
  1. Parser<T> function(
    1. A1
    ),
  2. A1 arg1
)

Reference to a production function parametrized with 1 argument.

See ref0 for a detailed description.

Implementation

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