pythonic-fp-circulararray 6.0.1__py3-none-any.whl → 6.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pythonic_fp/circulararray/__init__.py +7 -9
- pythonic_fp/circulararray/auto.py +220 -139
- pythonic_fp/circulararray/auto.pyi +22 -22
- pythonic_fp/circulararray/fixed.py +187 -110
- pythonic_fp/circulararray/fixed.pyi +20 -20
- {pythonic_fp_circulararray-6.0.1.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/METADATA +2 -2
- pythonic_fp_circulararray-6.0.2.dist-info/RECORD +11 -0
- pythonic_fp_circulararray-6.0.1.dist-info/RECORD +0 -11
- {pythonic_fp_circulararray-6.0.1.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/WHEEL +0 -0
- {pythonic_fp_circulararray-6.0.1.dist-info → pythonic_fp_circulararray-6.0.2.dist-info}/licenses/LICENSE +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2024-
|
|
1
|
+
# Copyright 2024-2026 Geoffrey R. Scheller
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -18,17 +18,15 @@ Circular Array
|
|
|
18
18
|
|
|
19
19
|
.. admonition:: Stateful circular array data structures.
|
|
20
20
|
|
|
21
|
-
+-------------------------------------+-------------------------------------------+
|
|
22
|
-
| Module | Description |
|
|
23
|
-
+=====================================+===========================================+
|
|
24
|
-
| **pythonic_fp.circulararray.auto** | Variable storage capacity circular array. |
|
|
25
|
-
+-------------------------------------+-------------------------------------------+
|
|
26
|
-
| **pythonic_fp.circulararray.fixed** | Fixed storage capacity circular array. |
|
|
27
|
-
+-------------------------------------+-------------------------------------------+
|
|
28
|
-
|
|
29
21
|
- O(1) pops and pushes either end
|
|
30
22
|
- O(1) size determination
|
|
31
23
|
- O(1) indexing
|
|
24
|
+
- Two types of circular arrays, fixed and variable capacity
|
|
25
|
+
|
|
26
|
+
.. note::
|
|
27
|
+
|
|
28
|
+
- Class constructors ``CA`` and ``CAF`` take an optional iterator to populate circular array.
|
|
29
|
+
- Factory Functions ``ca`` and ``caf`` take a variable number of parameters to populate circular array.
|
|
32
30
|
|
|
33
31
|
"""
|
|
34
32
|
|