Esempio n. 1
0
 def __getitem__(self,x):
     Operation.check_input(self,x)
     (a,b) = x
     if self.idem and a==b:
         return a
     if self.comm and b < a:
         tmp = a
         a = b
         b = tmp
     return self.f[(a,b)]