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.159 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.158 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.157 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.156 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.155 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.154 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.153 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.152 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.151 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.150 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.149 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.148 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.147 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.146 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.145 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.144 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.143 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.142 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.141 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.140 tracks/lua/exercises/reverse-string/example.lua