Lua - convert string to table

Viewed 51410

I want to convert string text to table and this text must be divided on characters. Every character must be in separate value of table, for example:

  • a="text"
  • --converting string (a) to table (b)
  • --show table (b)
  • b={'t','e','x','t'}
4 Answers
Related