We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
children_iter_mut()
A common pattern is to do
let mut children = expr.children(); for child in children.iter_mut() { // do some stuff } let expr = expr.with_children(children);
It would be nice to do :
for child in expr.iter_mut() { // do some stuff }
In a sense this is just descend(), but it links with the rest of Rust's Iterator API, instead of just being a map.
descend()
More generally, we could provide children_iter(), universe_iter(), children_iter_mut(), universe_iter_mut() to turn all the things into iterators.
children_iter()
universe_iter()
universe_iter_mut()
Questions:
Exactly which iter functions do we provide and what do we call them?
How should we traverse for universe_iter()? Should this be like transform()?
transform()
children_bi_iter()
universe_bi_iter()
children_bi_iter_mut()
universe_bi_iter_mut()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
A common pattern is to do
It would be nice to do :
In a sense this is just
descend()
, but it links with the rest of Rust's Iterator API, instead of just being a map.More generally, we could provide
children_iter()
,universe_iter()
,children_iter_mut()
,universe_iter_mut()
to turn all the things into iterators.Questions:
Exactly which iter functions do we provide and what do we call them?
How should we traverse for
universe_iter()
? Should this be liketransform()
?To-do
children_iter()
,universe_iter()
children_bi_iter()
,universe_bi_iter()
children_iter_mut()
,universe_iter_mut()
children_bi_iter_mut()
,universe_bi_iter_mut()
The text was updated successfully, but these errors were encountered: