Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

add Parser::filter_map#925

Merged
zesterer merged 3 commits into
zesterer:mainfrom
zeichenreihe:filter-map
Dec 19, 2025
Merged

add Parser::filter_map#925
zesterer merged 3 commits into
zesterer:mainfrom
zeichenreihe:filter-map

Conversation

@zeichenreihe

Copy link
Copy Markdown
Contributor

Closes #896

The code is mostly just the implementation of `Parser::filter`, but
taking an `Option<U>` from the condition.

@zesterer zesterer left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Broadly in favour, with just a few implementation comments.

Also, could you add this combinations to the 'meet the parsers' page in the guide? Thanks.

Comment thread src/debug.rs Outdated
Comment thread src/combinator.rs
@zesterer

Copy link
Copy Markdown
Owner

Thanks! Looks like there's just a cargo fmt left to do, but otherwise I'm happy with this PR, thanks!

@zesterer

Copy link
Copy Markdown
Owner

Thanks again!

@zesterer
zesterer merged commit e818786 into zesterer:main Dec 19, 2025
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add filter_map I think

2 participants