12 Commits

Author SHA1 Message Date
blueloveTH
2f3017ebfd ... 2023-10-31 00:28:36 +08:00
blueloveTH
a98e710fe7 delete old deque 2023-10-21 08:06:00 +08:00
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
blueloveTH
5a42d35f9d ... 2023-09-27 06:45:18 +08:00
blueloveTH
718edd9b9d ... 2023-06-25 17:50:23 +08:00
blueloveTH
f404724aaf ... 2023-06-25 17:25:09 +08:00
blueloveTH
de7c1dc94b ... 2023-06-25 16:08:10 +08:00
blueloveTH
c5f39948f0 ... 2023-06-13 01:03:55 +08:00
blueloveTH
940159e1ab add dict.pop 2023-06-05 13:02:42 +08:00
blueloveTH
f16518e439 ... 2023-06-04 22:20:42 +08:00
blueloveTH
07be627cb8 ... 2023-05-21 19:08:33 +08:00
blueloveTH
d4ae2727a1 add collections 2023-03-16 23:32:23 +08:00