Difference between revisions of "Join"

From MiniScript Wiki
Jump to navigation Jump to search
(Created page with "<c>self.join</c> joins the elements of a list together to form a string. See also: split === Arguments === {| class="wikitable" |- ! Parameter Name !! Default Value !!...")
 
(Change header from "Default value" to "Type")
 
(2 intermediate revisions by one other user not shown)
Line 7: Line 7:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! Parameter Name !! Default Value !! Meaning
+
! Parameter Name !! Type !! Meaning
 
|-
 
|-
 
| ''self'' || list || list to join
 
| ''self'' || list || list to join
 
|-
 
|-
| ''delimiter'' || string, default "" || string to insert between each pair of elements.
+
| ''delimiter'' || string, default " " || string to insert between each pair of elements.
 
|}
 
|}
  

Latest revision as of 23:56, 17 November 2023

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"