(self, i, texel)
| 118 | return Group(l), Group(r) |
| 119 | |
| 120 | def insert(self, i, texel): |
| 121 | if i == len(self): |
| 122 | return Group(self.data+[texel]) |
| 123 | |
| 124 | data = [] |
| 125 | for elem in self.data: |
| 126 | n = len(elem) |
| 127 | if i<0: |
| 128 | data.append(elem) |
| 129 | elif i>=n: |
| 130 | data.append(elem) |
| 131 | else: |
| 132 | data.append(elem.insert(i, texel)) |
| 133 | i -= n |
| 134 | return Group(data) |
| 135 | |
| 136 | |
| 137 | C = Characters |
no test coverage detected