예제 #1
0
파일: CatStack.py 프로젝트: catb0t/microcat
 def b_and(self):
     """( y x -- x&y )
     bitwise AND the bits of y with x"""
     y, x = self.popn()
     if anyof(isnone(y), isnone(x)):
         return
     self.push(x & y)
예제 #2
0
파일: CatStack.py 프로젝트: catb0t/microcat
 def add_list(self):
     """( y x -- y+x )
     concatenate two lists"""
     y, x = self.popn()
     if anyof(isnone(y), isnone(x)):
         return
     for _, e in enumerate(y):
         x.append(y)
     self.push(x)