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 for this project is 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.0.2.tar.gz (21.6 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.0.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.0.2.tar.gz
Algorithm Hash digest
SHA256 4216e408547596887a25158224dcda09c9beaa76662e7beb478d9998ba31c3ac
MD5 c80f2a7409d99cd8b9ede8714a370664
BLAKE2b-256 f48a1b7ca78faebaec6c6fd2315532ba97af75e1e102b031e493313909e8b430

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 97a01d5bf793e2fd24aeeb6b84375f49437302003a21b360a35cc37155a7b2e0
MD5 3ae98b150d36b3db555f820b524d7c84
BLAKE2b-256 f2393e3f89b461d963ea4f2b2ff29ef42bf06aa48531852a26d7a8b8b69876a2

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