zcollection.variable.abc.concat#

zcollection.variable.abc.concat(self, other, concatenate, dim)[source]#

Concatenate a variable with another variable or a sequence of variables.

Parameters:
  • self (T) – A variable.

  • other (T | Sequence[T]) – A variable or a sequence of variables.

  • constructor – Variable constructor.

  • concatenate (Callable) – Function used to concatenate the arrays.

  • dim (str) – Dimension along which the arrays are concatenated.

Returns:

A new variable.

Raises:

ValueError – If other is empty or is not a sequence of self type.

Return type:

T