Difference between revisions of "Array.concatall()"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "This function concatenates all the elements in an array or table row wise. ==Example== 1. a=FUNCT("[x,x^2]") b=a(2..5) b.concatall() -->The above code defines a function...")
 
Line 22: Line 22:
  
 
==See Also==
 
==See Also==
[[Array.colconcat()|colconcat]]
+
*[[Array.fillwith() | fillwith]]

Revision as of 04:59, 29 April 2020

This function concatenates all the elements in an array or table row wise.

Example

1.

a=FUNCT("[x,x^2]")
b=a(2..5)
b.concatall()

-->The above code defines a function to display the entry elements and their squares. Later, concatall() concatenates all the elements row wise.
b is obtained as :
2 4 5
4 16 25

Final conacatenated output is - 2 4 5 4 16 25


2.

a=["aa","bb","cc"]
a.concatall()

Output-->aa bb cc

See Also