FiSGO.OrderSearch.add_lists

add_lists(list1, list2)[source]

Adds two lists of integers of the same length pointwise.

Example:

>>> add_lists([1,2,3],[0,1,2])
[1, 3, 5]
Parameters:
  • list1 (list[int]) – A list of integers.

  • list2 (list[int]) – A list of integers.

Return type:

list[int]

Returns:

Pointwise addition of list1 and list2.