Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
just simple method solution in Clear category for Replace First by pakicetus
from typing import Iterable
def replace_first(items: list) -> Iterable:
if len(items) <= 1: return items
items.append(items.pop(0))
return items
July 3, 2020
Comments: