luadocs/content/lua.scripts.api.manual/dtutils/join.md
Bill Ferguson b69d752221 [lua scripts] created manual from script comments
[lua scripts api] created manual from embedded library documentation

[lua api] created stub to contain lua api manual
2020-12-12 15:14:19 -05:00

721 B

title id weight draft author
join join 40 false people

NAME

join

SYNOPSIS

join a table of strings with a specified separator

USAGE

local du = require "lib/dtutils"
local result = du.join(tabl, pat)

tabl - table - a table of strings
pat - string - a separator

DESCRIPTION

join assembles a table of strings into a string with the specified pattern in between each string

RETURN VALUE

result - string - the joined string on success, or an empty string on failure

EXAMPLE

join({a, "long", "path", "name", "to", a, "file.txt"}, " ")

would return the string "a long path name to a file.txt"

REFERENCE

http://lua-users.org/wiki/SplitJoin