You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's currently pretty painful to remove items matching a given condition from an array or table with toml_edit due to the lack of a retain-like method. You need one "pass" to gather the indices, and clone them if removing from a table, and then a second pass to remove each one, one by one. This is both unergonomic and inefficient. It'd be great to have Array::retain and TableLike::retain to make this kind of "match removal" easier!
The text was updated successfully, but these errors were encountered:
It's currently pretty painful to remove items matching a given condition from an array or table with
toml_edit
due to the lack of aretain
-like method. You need one "pass" to gather the indices, and clone them if removing from a table, and then a second pass to remove each one, one by one. This is both unergonomic and inefficient. It'd be great to haveArray::retain
andTableLike::retain
to make this kind of "match removal" easier!The text was updated successfully, but these errors were encountered: