User Tools

Site Tools


en:implode

This is an old revision of the document!


Implode (Function)

Format

implode ( array )
implode ( array , delimiter_expr )
implode ( array , row_delimiter, column_delimiter )
implode ( { x1, y1, x2, y2, x3, y3 ... } )
implode ( { x1, y1, x2, y2, x3, y3 ... } , delimiter_expr )
implode ( { x1, y1, x2, y2, x3, y3 ... } , row_delimiter, column_delimiter )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } , delimiter_expr )
implode ( { {x1, y1}, {x2, y2}, {x3, y3} ... } , row_delimiter, column_delimiter )

returns string_expression ==== Description ==== Append the elements in an array into a string. Optionally placing the delimiter_expr between the elements. This is functionally the opposite of the Explode function. ==== Example ==== <code> dim a$(1) dim b(1) a$ = Explode(“How now brown cow”,“ ”) print implode(a$,“-”) print implode(a$) b = Explode(“1,2,3.33,4.44,5.55”,“,”) print implode(b,“, ”) print implode(b) </code> will display <code> How-now-brown-cow Hownowbrowncow 1, 2, 3.33, 4.44, 5.55 123.334.445.55 </code> ==== See Also ====

==== History ==== |0.9.6.57|New to Version| |1.99.99.55|dimensional delimiters and list support was added|

en/implode.1471027646.txt.gz · Last modified: 2020/02/28 10:46 (external edit)