FiSGO.OrderSearch.substract_lists

substract_lists(list1, list2)[source]

Substracts two lists of integers with the same length pointwise.

Example:

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

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

Return type:

list[int]

Returns:

Pointwise substraction of list1 and list2, list1-list2.