Name

vector_concat — concatenate vectors

Synopsis

vector vector_concat ( vec1 vector ,
  vec2 vector ,
  ... ,
  vec-n vector );
 

Description

vector_concat takes a variable number of vectors (heterogeneous arrays) and constructs a new vector containing copies of each (top level) element in the arguments.

Parameters

vec1..n

vector .

Return Values

A vector made of copies of elements contained in vec1..n.

Examples

Example 24.441. Simple Use

dbg_obj_print (vector_concat (vector (now(), 'black', 'crow'),
                              vector ('said', 'nevermore')));

dbg_obj_print (vector_concat (vector ('a','b'),
                              vector (vector ('c', 'd'), 'e')));

Would output something like this on the Virtuoso console:

({ts 2001-08-07 16:57:12.000000}  "black" "crow" "said" "nevermore" )
("a" "b" ("c" "d" ) "e" )