Sha256: a338f7d8627011f927f0e817ffb712ff77d8cae12b3bdc42919b3bf730823d64

Contents?: true

Size: 126 Bytes

Versions: 93

Compression:

Stored size: 126 Bytes

Contents

return function(s)
  local reversed = ''
  for c in s:gmatch('.') do
    reversed = c .. reversed
  end
  return reversed
end

Version data entries

93 entries across 93 versions & 1 rubygems

Version Path
trackler-2.2.1.139 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.138 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.137 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.136 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.135 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.134 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.133 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.132 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.131 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.130 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.129 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.128 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.127 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.126 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.125 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.124 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.123 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.122 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.121 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.120 tracks/lua/exercises/reverse-string/example.lua