pub fn map<A, B, I>(mut parser: impl Parser<A, I>, func: impl Fn(A) -> B) -> impl Parser<B, I> {
    move |input: I| {
        let (value, input) = parser.parse(input)?;
        Some((func(value), input))
    }
}
/// Transforms the output value of a parser.
Transforms the output value of a parser.
Transforms the output value of a parser .
pub fn map<A, B, I>(mut parser: impl Parser<A, I>, func: impl Fn(A) -> B) -> impl Parser<B, I> {
    move |input: I| {
        let (value, input) = parser.parse(input)?;
        Some((func(value), input))
    }
}
pub fn map < A , B , I > ( mut parser : impl Parser < A , I > , func : impl Fn ( A ) -> B ) -> impl Parser < B , I > { move | input : I | { let ( value , input ) = parser . parse ( input ) ? ; Some ( ( func ( value ) , input ) ) } }
Transforms the output value of a parser.
Transforms the output value of a parser .
parser
impl Parser<A, I>
func
impl Fn(A) -> B