Progetto H — API Reference API & Scripting Documentation
Function Shared

string.ToTable

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

Syntax

Lua
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

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