~+slices solution in Clear category for Replace Last by MrPod
replace_last=lambda a:a[~0:]+a[:~0]
Feb. 27, 2020