- right<TToken, TOptions, TValueA, TValueB>(pa: Matcher<TToken, TOptions, TValueA>, pb: Matcher<TToken, TOptions, TValueB>): Matcher<TToken, TOptions, TValueB>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
Parameters
-
pa: Matcher<TToken, TOptions, TValueA>
-
pb: Matcher<TToken, TOptions, TValueB>
Returns Matcher<TToken, TOptions, TValueB>
- right<TToken, TOptions, TValueA, TValueB>(pa: Parser<TToken, TOptions, TValueA>, pb: Parser<TToken, TOptions, TValueB>): Parser<TToken, TOptions, TValueB>
-
Type Parameters
-
TToken
-
TOptions
-
TValueA
-
TValueB
Parameters
-
pa: Parser<TToken, TOptions, TValueA>
-
pb: Parser<TToken, TOptions, TValueB>
Returns Parser<TToken, TOptions, TValueB>
This overload makes a Matcher that applies two matchers one after another and returns the result from the second one.
Implementation is based on ab.