Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
items[1:] + [items[0]] solution in Clear category for Replace First by serp90
from typing import Iterable
def replace_first(items: list) -> Iterable:
return items[1:] + [items[0]] if items else items
April 4, 2021
Comments: