Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
pop + cat oneliner solution in Creative category for Replace Last by leggewie
def replace_last(line: list) -> list:
# pop off the last item and insert it at the front -> profit
return [line.pop()] + line if line else []
May 27, 2021
Comments: