I\'ve got a list (used as a stack) of numpy arrays. Now I want to check if an array is already in the list. Had it been tuples for instance, I would simply have written some
What about this:
a = array([1, 1]) l = [np.array([1,1]), np.array([2,2])] list(map(lambda x: np.array_equal(x, a), l) [True, False]