I am creating an abstract data type that creates a doubly linked list (not sure if this is the correct translation). In it, I created the __len__ method to correctly calculate its length, the __repr__ method to represent it correctly, but now I will not create a method that, when the user does something like:
if foo in liste_adt
will return the correct answer, but I do not know what to use, because __in__ does not work.
Thanks,
source share