![]() | More Under The Hood |
Here's the part of the Pattern class that implements the "&" operator:
class Pattern:
...
def __and__ (self, other): # self & other
return AndP (self, other)
...
![]() | More Under The Hood |
Here's the part of the Pattern class that implements the "&" operator:
class Pattern:
...
def __and__ (self, other): # self & other
return AndP (self, other)
...
| All About Pattern Matching | Sam Wilmott |
| Slide 25 of 37 example | www.wilmott.ca |