Linq RemoveFirst equivalent

ienumerable, lambda, linq

Solution

Like this:

list.RemoveAt(list.FindIndex(x => thingy));

If no item is found, an exception will be thrown.

Note that this has nothing to do with LINQ and can only be done with `List<T>`.

Problem

I was looking for a Linq `RemoveFirst(Predicate<T> match)` but could only find `RemoveAll`. I know I can write my own extension method but was wondering if there already exists an equivalent function with a different name, or an easy way to achieve the same result.

Original source