Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
items + [items.pop(0)] solution in Clear category for Replace First by bartholomewbrokka
def replace_first(items):
return items + [items.pop(0)] if len(items) > 0 else []
Jan. 15, 2021
Comments: