F=->w{s=c=0.0;w.chars.map{|l|s+=l.ord;c+=1;(s/c).round.chr}*''} p F['Hello!']p F['test']p F['42']p F['StackExchange']
Standard input is empty
"HW^adY" "tmop" "43" "Sdccd_ccccddd"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!