79814904

Date: 2025-11-09 16:41:08
Score: 1.5
Natty:
Report link

To remove the first matching element, one may:

xs.extract_if(.., |x| *x == some_x).next();

The resulting option will contain the value, if contained in the vector.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bendn