arrayComplexConcat function

ArrayComplex arrayComplexConcat(
  1. ArrayComplex a,
  2. ArrayComplex b
)

Concatenate X in to the current array

Examples

var list = ArrayComplex([
  Complex(real: 3.0, imaginary: 4.0),
  Complex(real: 3.0, imaginary: 4.0) ,
  Complex(real: 3.0, imaginary: 4.0)]);

var b = ArrayComplex([
  Complex(real: 3.0, imaginary: 4.0)
]);

print(arrayComplexConcat(list, b));

/* expected output
ArrayComplex([
  Complex(real: 3.0, imaginary: 4.0),
  Complex(real: 3.0, imaginary: 4.0) ,
  Complex(real: 3.0, imaginary: 4.0),
  Complex(real: 3.0, imaginary: 4.0)
])
*/`

Implementation

ArrayComplex arrayComplexConcat(ArrayComplex a, ArrayComplex b) {
  return ArrayComplex(a + b);
}