RosettaCodeData/Task/Reverse-a-string/Pluto/reverse-a-string-1.pluto
2026-04-30 12:34:36 -04:00

10 lines
324 B
Text

require "uchar"
require "gchar"
for {"asdf", "josé", "møøse", "was it a car or a cat I saw", "😀🚂🦊"} as word do
print(uchar.of(word):reverse())
end
for {"as⃝df̅", "ℵΑΩ 駱駝道 🤔 🇸🇧 🇺🇸 🇬🇧‍ 👨‍👩‍👧‍👦🆗🗺"} as word do
print(gchar.of(word):reverse())
end