# LazySet
A collection that tries to imitate a “chained” difference and union of sets and various other operations are performed lazily:
Given a base set, an iterable of sets to subtract from the base set, and an iterable of sets to now add to it (note that the order is important!), a LazySet will act exactly like a regular set and supports all the basic operations, but without actually performing any state-changing unions or differences to any of the participating sets (that take O(number of items in all sets)).
Instead, the LazySet goes over all participating sets according to their order to check if an item is contained in it, thus giving a better run time in some cases for most operations. For example, if the LazySet used is after initialization and no modifying operations were used on it, containment checking takes O(number of participating sets).
Note that when using only difference and union operations, this collection is the set equivalent of ChainMap, so it can also be called ChainSet.
Release files for lazy-set 1.4.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lazy_set-1.4.6.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lazy_set-1.4.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / lazy_set-1.4.6.tar.gz
| Download URL | lazy_set-1.4.6.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4ab7de151118f774fe48bde9b08c33d16529222f9b9009eb29036eaa836869e
|
|
BLAKE2b-256 checksum How to use checksums |
c223248cce9a0453927df50dc6c99d927dd865b659fcba2af24a574484005763
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lazy_set-1.4.6-py3-none-any.whl
| Download URL | lazy_set-1.4.6-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cccb074a0d976197c72d399137d53d414673ffd307be39b7329caece18275c3
|
|
BLAKE2b-256 checksum How to use checksums |
c961fd51dd7135fe0de9161993c13e92f83bc53ec885ec915e684d7b01a4947a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |