Finds all items that satisfy the provided test, and replace it with to.
test
to
IList<T> replaceAllWhere(Predicate<T> test, T to) => map((element) => test(element) ? to : element).toIList(config);