pub fn with_seq<P, S>(parser: P) -> WithSeq<P, S>Expand description
Attach the consumed sequence to a parser output.
use chasa::prelude::*;
let mut input = "ab";
let out = parse_ok_once(&mut input, with_seq(item('a'))).unwrap();
assert_eq!(out, ('a', "a"));
assert_eq!(input, "b");