.NET Fiddle

CSharp · Console

/Program.cs

using System;
using System.Collections.Generic;

Afficher(RotaterGauche(new List<int>(){ 2 }));
Afficher(RotaterGauche(new List<int>(){}));
Afficher(RotaterGauche(new List<int>(){ 2, 3 }));
Afficher(RotaterGauche(new List<int>(){ 2, 3, 5, 7, 11 }));

static void Afficher<T>(IEnumerable<T> elems)
{
   foreach(T e in elems)
      Console.Write($"{e} ");
   Console.WriteLine();
}
static List<T> RotaterGauche<T>(List<T> src)
{
   List<T> dest = new(src);
   for(int i = 1; i < dest.Count; ++i)
	   (dest[i-1], dest[i]) = (dest[i], dest[i-1]); // permuter
   return dest;
}
;