I want to put the two sundays at the end of the array.
$array = @() $array += "sunday" $array += "sunday" $array += "monday" $array += "tuesday"
at this point, $array is just sunday.
so the following will move the first sunday:
$first,$rest = $Array $Array = $rest,$first
at this point, $array is
so if I now shift it again with the same commands, it just moves those three below the first sunday, aka moving the first sunday back to the top of the list.
is there something I have to do after a shift to make the array ‘normal’ again, so that $array is just the first line of the array?