Programming is hard vec.retain(|val| match val.thing { Thing::A => { // Keep false }, Thing::B => { // Drop true }, });
-
-
yes it is, probably for clarity reasons.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.