I have a lot of
nom code that looks like this:
tuple((tag("let"), alpha1, tag("="), digit1))(input)
However, the result of
tuple includes the values parsed for the
= tokens, which is useless to me. So I have to use
.map(|(input, (_, name, _, value)| ...) to filter it out. Is there a combinator, or some other way, to ignore the result of those combinators?
Based on the type signature of
tuple, I'm guessing the answer is "no", but I figured I might as well ask, especially if I'm going about it the wrong way.