string.Implode

From Garry's Mod
Jump to: navigation, search
 string.Implode( )

Contents

Description

This feature is deprecated.
You should avoid using it as it may be removed in a future version.

You really should just use table.concat.

Joins the values of a table together to form a string.

This is the reverse of string.Explode and is functionally identical to table.concat, but with less features.

Arguments

string separator=""

The separator to insert between each piece.

Arguments

table pieces

The table of pieces to concatenate. The keys for these must be numeric and sequential.

Returns

string

Imploded pieces

Examples

Example

Joins all values of a table with a space

local tab = { "one", "two", "three" }

print( string.Implode( " ", tab ) )

Output:



one two three
Personal tools
Navigation