equal_ignore_order#

caf.toolkit.toolbox.equal_ignore_order(one, two)[source]#

Check whether two iterables contain the same items, ignoring order.

Only use when elements are neither hashable nor sortable, as this method is quite slow. if hashable use: set(a) == set(b) if sortable use: sorted(a) == sorted(b)

Parameters:
Return type:

bool