Swap The Characters by oerjan

m@main=getLine>>=putStrLn.foldl1(flip$map.(#)).words>>m
l#c|[e]<-filter(/=c)l=e|1>0=c

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page