Pastable version of Find the list's last satisfying element and skip the rest