Skip to content
New issue

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

Add a method removing a statement for Block #252

Closed
jiwonz opened this issue Jan 27, 2025 · 0 comments · Fixed by #254
Closed

Add a method removing a statement for Block #252

jiwonz opened this issue Jan 27, 2025 · 0 comments · Fixed by #254

Comments

@jiwonz
Copy link
Contributor

jiwonz commented Jan 27, 2025

Currently, there is no way to simply mutate & remove the specific statements of Block. Some temporary works for this:

  1. Use block.filter_statements()
  2. Regenerate the Block through the vector excluding the statements you want to remove.

So, block.remove_statement(index: usize) would be cooler to remove a statement in a specific index of Block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant