insertion in the front >>> LinkedDeque().add_first('AV').first() 'AV'
(self, element)
| 87 | # DEque Insert Operations (At the front, At the end) |
| 88 | |
| 89 | def add_first(self, element): |
| 90 | """insertion in the front |
| 91 | >>> LinkedDeque().add_first('AV').first() |
| 92 | 'AV' |
| 93 | """ |
| 94 | return self._insert(self._header, element, self._header._next) |
| 95 | |
| 96 | def add_last(self, element): |
| 97 | """insertion in the end |