S Mahmudul Hasan c82bfb5455
Implement deque in C++ as required by #139 (#155)
* Initial integration of deque in collections

* some fix

* WIP: Implemented a int-only deque with limited capabilities

* WIP: added some more functionality -> changed int to arbitrary objects

* WIP: Added more functionalities in deque

* WIP: switched to std::deque

* WIP: added more functionalities

* WIP: minor fix

* WIP: added constructor

* WIP: added deque iterator

* WIP: added more functionalities

* Cleaned up and added more functionalities

* minor fix, std::min

* minor fix, rotate, n=0 case

* fix `collections` module

* support pickle

* refactored collections module

* Added some tests, more to follow

* Fixed the tests, more to follow

* Fixed some functionalities and added more tests

* added more tests, called __init__ from pickle, added reverse iterator option

* added the tests

* dropped support for __init__ for now

* moved deque iterator to collections.cpp

* undo unnecessary changes

* Cleaned up and added __str__() support

---------

Co-authored-by: blueloveTH <blueloveTH@foxmail.com>
2023-10-21 07:47:11 +08:00
..
...
2023-09-24 13:59:48 +08:00
...
2023-05-21 19:08:33 +08:00
2023-03-17 11:38:22 +08:00
...
2023-10-12 12:50:57 +08:00
...
2023-08-02 23:37:57 +08:00
...
2023-10-11 16:11:50 +08:00
...
2023-09-04 21:38:48 +08:00
2023-03-16 23:56:40 +08:00
2023-03-18 23:04:34 +08:00
2023-03-18 23:04:34 +08:00
2023-09-26 21:45:31 +08:00