Riferimento API di nanos world Documentazione italiana non ufficiale
Documentazione ufficiale
Funzione Condiviso

string.ToTable

Converts this string into a table where each element is a single-character substring of the original string.

Non ancora tradotto

Sintassi

Lua
string.ToTable(str)

Parametri

Nome Tipo Predefinito Descrizione
str string The string to convert into a table

Valore restituito

  • string[] Table of single-character strings

Esempi

Convert string to table of characters
local str = "hello",local tbl = str:ToTable()