Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Craven - Remove All Before - Readable solution in Clear category for Remove All Before by corwin.ravenwood
from typing import Iterable
def remove_all_before(items: list, border: int) -> Iterable:
# Returns all values except those before the first instance of the (int) border value in items (list).
try:
return items[items.index(border):]
except:
return items
April 15, 2021