I found many articles about finding intersection of 2 lists, but in none of them was written how could I get all intersections (maybe it could be called subintersections).
Example:
list1 = ['a', 'b', 'c', 'd']
list2 = ['b', 'c', 'd', 'e']
print (find_all_intersections(list1, list2))
Output:
['b', 'c', 'd', 'bc', 'bd', 'cd', 'bcd']
Is there any function which can make this?