get_common_elements

improvelib.utils.get_common_elements(list1, list2, verbose = False)

Return a list of elements that the provided lists have in common.

Provided as a helper function.

Parameters:

list1List

First list.

list2List

Second list.

verbosebool, optional

Flag for verbosity. If True, info about computations is displayed. Default is False.

Returns:

in_commonList

List of common elements.

Example