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.98 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.97 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.96 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.95 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.94 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.93 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.92 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.91 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.90 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.89 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.88 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.87 tracks/lua/exercises/reverse-string/example.lua
trackler-2.2.1.86 tracks/lua/exercises/reverse-string/example.lua