Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
One liner.. sort of solution in Clear category for Replace First by JamesArruda
from typing import Iterable
def replace_first(items: list) -> Iterable:
return items if not items else items[1:] + [items[0]]
Jan. 23, 2020
Comments: