Sha256: 3af77932ac19ff92e660ff6a633ada259e53187ec830813d2c3a6f69ef531fe4

Contents?: true

Size: 174 Bytes

Versions: 396

Compression:

Stored size: 174 Bytes

Contents

return function(s)
  local letters = {}
  s:gsub('[A-Z]*[a-z]*', function(match)
    table.insert(letters, match:sub(1, 1):upper())
  end)
  return table.concat(letters)
end

Version data entries

396 entries across 396 versions & 1 rubygems

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