Answers for "ruby tr function"

2

.tr in ruby

# if wana transform a to n, b to m, c to o
messages.map { |c| c.tr("a-z", "n-za-m") }
Posted by: Guest on January-24-2021

Browse Popular Code Answers by Language