t = {}
for i = #input, 1, -1 do
table.insert(t, input:sub(i, i))
end
return table.concat(t, "")reverses the input string
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 101 | [visualize] |
| Snippet ID: | #42 |
| Snippet name: | reverse |
| Eternal ID of this version: | #42/1 |
| Text MD5: | bf6e3fc4f5bb7ef96cfd06788cdeb9d5 |
| Author: | stefan |
| Category: | text transformations |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2013-12-23 18:39:40 |
| Source code size: | 101 bytes / 5 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 2186 / 481 |
| Referenced in: | [show references] |