Gradually!
Some classic Jaguars had the pedals switched - including the famous one in the Inspector Morse TV series which led to a few accidents on set.
Porsche also made some race cars with the accelerator on the left to make it quicker to do 'Le Mans starts' - where the driver must run to the car and start it.