@anonymous/

RightDisguisedHagfish

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
f=->s{i=0;s.gsub(r=/[^\Waeiouy_]/){s.scan(r)[i-=1]}}

puts f["a test case"]            # a sect sate
puts f["well-done"]              # nedl-lowe
puts f["reverse the consonants"] # setenne sne cohtosarvr
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]