fork download
  1. F=
  2. ->w{s=c=0.0;w.chars.map{|l|s+=l.ord;(s/c+=1).round.chr}*''}
  3.  
  4. p F['Hello!']
  5. p F['test']
  6. p F['42']
  7. p F['StackExchange']
Success #stdin #stdout 0.01s 7412KB
stdin
Standard input is empty
stdout
"HW^adY"
"tmop"
"43"
"Sdccd_ccccddd"