Description
Hi there,
Firstly, thank you so much for nom, it is a true pleasure to use. We use it regularly in production and it has been rock solid, and a real joy to develop with. Hopefully I will be able to open-source a parser we have written soon.
I have no issue to report, just a question:
I am wondering if there is a combinator that is similar to take
, but drops/discards/skips the given number of bytes rather than returning them. Saying this another way, is there something like:
let s = skip(2usize)(s)?;
that simply returns the input with a certain number of prefix bytes removed, as opposed to using take
like so:
let (s, _skipped_bytes) = take(2usize)(s)?;
I certainly can make a function that does this, I'm just curious if such a thing exists as a primitive in nom.
I have searched the documentation and the source and so far not been able to find anything, but I may have missed it. Thank you!