Skip to content

Implement filtered collections of terminal/nonterminal nodes#709

Merged
tturocy merged 2 commits intomasterfrom
dev_terminal
Dec 17, 2025
Merged

Implement filtered collections of terminal/nonterminal nodes#709
tturocy merged 2 commits intomasterfrom
dev_terminal

Conversation

@tturocy
Copy link
Copy Markdown
Member

@tturocy tturocy commented Dec 16, 2025

This introduces a new filter_if operation which is intended to imitate C++20's filter on ranges and views.

As an application, ranges of terminal nodes and
non-terminal nodes are made available as part of GameRep.

This introduces a new `filter_if` operation which is intended to imitate
C++20's `filter` on ranges and views.

As an application, ranges of terminal nodes and
non-terminal nodes are made available as part of `GameRep`.
@tturocy
Copy link
Copy Markdown
Member Author

tturocy commented Dec 16, 2025

@d-kad @rahulsavani As discussed, here's a proposed addition where we have filtered ranges GetTerminalNodes and GetNonterminalNodes for a game. These are underpinned by filter_if, which can be used to filter other iterators with an appropriate predicate.

@d-kad d-kad marked this pull request as ready for review December 16, 2025 20:08
@d-kad
Copy link
Copy Markdown
Contributor

d-kad commented Dec 16, 2025

the changes look good -- will refactor the subgames root finder using these when pushed

@tturocy tturocy merged commit 4639754 into master Dec 17, 2025
27 of 28 checks passed
@tturocy tturocy deleted the dev_terminal branch December 17, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants