Join

From MiniScript Wiki
Revision as of 23:56, 17 November 2023 by SebNozzi (talk | contribs) (Change header from "Default value" to "Type")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

self.join joins the elements of a list together to form a string.

See also: split

Arguments

Parameter Name Type Meaning
self list list to join
delimiter string, default " " string to insert between each pair of elements.

Example

[2,4,8].join("-")		// returns "2-4-8"