(self, word)
| 669 | self.data = {} |
| 670 | |
| 671 | def add(self, word): |
| 672 | ref = self.data |
| 673 | for char in word: |
| 674 | ref[char] = char in ref and ref[char] or {} |
| 675 | ref = ref[char] |
| 676 | ref[''] = 1 |
| 677 | |
| 678 | def dump(self): |
| 679 | return self.data |
no outgoing calls
no test coverage detected