Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Generator function solution in Clear category for Remove All After by rossras
from typing import Iterable
def remove_all_after(items: list, border: int) -> Iterable:
for i in items:
yield i
if i == border:
break
Jan. 30, 2020
Comments: