klyn.collections.List.operator+
method
public static operator+(notnull left as List<T>, notnull right as List<T>) as List<T>
Description

Concatenates two lists into a new list.

import klyn.collections

data = [10, 20] + [30, 40]
print(data)  # [10, 20, 30, 40]
Parameters
ParameterDescription
leftLeft list.
rightRight list.
Returns

A new list containing both operands in order.

Throws
  • NullException if either operand is null at runtime; a statically null operand is rejected with TypeError.