Skip to main content

Circular Array

Project description

PyPI project pythonic-fp-circulararray.

Python module implementing stateful circular array data structures.

  • variable storage capacity circular array

    • O(1) pops either end

    • O(1) amortized pushes either end

    • O(1) indexing, fully supports slicing

    • auto-resizing more storage capacity when necessary, manually compatible

    • iterable, safely mutates while iterators iterating over previous state

    • comparisons compare identity before equality, like builtins

    • in boolean context, falsy when empty, otherwise truthy

    • function ca produces auto-resizing circular array from arguments

  • fixed storage capacity circular array

    • O(1) pops and pushes either end

    • O(1) indexing, does not support slicing

    • fixed total storage capacity

    • iterable, safely mutates while iterators iterating over previous state

    • comparisons compare identity before equality, like builtins

    • in boolean context, falsy when either empty or full, otherwise truthy

    • function caf produces fixed capacity circular array from arguments

Part of the pythonic-fp PyPI projects.

Documentation

Documentation and other links for this project are hosted on GitHub Pages.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythonic_fp_circulararray-6.1.1.tar.gz (26.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythonic_fp_circulararray-6.1.1-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

Details for the file pythonic_fp_circulararray-6.1.1.tar.gz.

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.1.1.tar.gz
Algorithm Hash digest
SHA256 df6c0ee0b97ca9c7443a2b3b12a46ab251f6beed3bd6e76ce36cf35e2fa13393
MD5 7a548ee28a26032a93864941f9b39171
BLAKE2b-256 7827125bedb8ef230a4e43efc4d7cf9b975f52899df60f545c9d9ddee705d628

See more details on using hashes here.

File details

Details for the file pythonic_fp_circulararray-6.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5cbe9d94f9af0b9623050d63f3f48f72eb03d725f4e0d3cab5755f98e10930b2
MD5 35a7e77bf5a0cb1cd082e86ee03e7669
BLAKE2b-256 be7d90fec50b2f9f33843c3104be3513e5db39a22b113b19a5894c8e5e1ed216

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page