- :string
- or :nothing
join
join collection of values into string
Parameters
join collection :literal :pathliteral :block
Attributes
with | :char, :string | use given separator |
path | join as path components |
Returns
Examples
copyarr: ["one" "two" "three"] print join arr ; onetwothree print join.with:"," arr ; one,two,three join 'arr ; arr: "onetwothree"
copyprint join ['H' 'e' 'l' 'l' 'o' '!'] ; Hello! print join @["1 + 2 = " 1+2] ; 1 + 2 = 3
copyjoin.with:'-' ["Hello" "world"] ; => "Hello-world"