intersection#

ListTransformer can show the intersection between two lists.

import ListTransformer

print(ListTransformer.intersection([1, 2, 3, 3], [1, 2, 3, 3, 4, 5]))
print(ListTransformer.intersection([1, 2, 3, 3], [1, 2, 3, 3, 4, 5], ListTransformer.Tools.no_same))

Outputs:#

[1, 2, 3, 3] as list

[1, 2, 3] as list