- Preparing search index...
- The search index is not available
Kombo - v3.0.0
- map2<A, B, C>(fn: ((a: A, b: B) => C)): ((parserA: Simple.Parser<A>) => ((parserB: Simple.Parser<B>) => Simple.Parser<C>))
-
Parameters
-
fn: ((a: A, b: B) => C)
-
- (a: A, b: B): C
-
Returns C
Combine the results from two different parsers.
Example
The apply function is defined using map2.