During WW 2 when raw materials, including coal, were in short supply and expensive the Swiss Federal Railways had a switching problem. While all the main line engines were electric, little 0-6-0 steamers were still doing a lot of the yard switching.
So they decided to equip a steamer with electric heating apparatus and the rest is history.
http://www.douglas-self.com/MUSEUM/LOCOLOCO/swisselec/swisselc.htm