Skip to content

Conversation

TonalidadeHidrica
Copy link
Collaborator

The rustic way to specify a certain range of a container is to use s..t notation. I changed the signature of FenwickTree::sum, Segtree::prod, and LazySegtree::prod so that they accept any range notation like .., s..t, s..=t, ..t and so on.

@TonalidadeHidrica
Copy link
Collaborator Author

TonalidadeHidrica commented Jun 21, 2022

Oh by the way, I forgot to change the signature of LazySegtree::apply_range too. I'll do it later.

Copy link
Member

@qryxip qryxip left a comment

Choose a reason for hiding this comment

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

LGTM. Merging

@qryxip qryxip merged commit 44b3805 into rust-lang-ja:master Apr 8, 2023
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