DEV Community

loading...

Discussion on: Daily Challenge #15 - Stop gninnipS My sdroW!

Collapse
mkrl profile image
Mikhail Korolev • Edited

Ruby

string.split.map{ |s| s.length >= 5 ? s.reverse! : s } * " "