Function
string.ToTable
Converts this string into a table where each element is a single-character substring of the original string.
Syntax
string.ToTable(str)
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
str
|
string | — | The string to convert into a table |
Returns
- string[] Table of single-character strings
Examples
local str = "hello",local tbl = str:ToTable()