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.3.tar.gz (26.0 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.3-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.0.3.tar.gz
Algorithm Hash digest
SHA256 b9eab40cd50b695762da37eb08ff6f0a1a7c56b1e06f1682851e97367610646f
MD5 d670eb0a4e2fcfdeeabefd4eb130483f
BLAKE2b-256 411f9c88cc96c5333f112955e3c1eb30406e56918806c2171848c87d097968af

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pythonic_fp_circulararray-6.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 45c762d285a5021d903442cbea99b8e3ff5e949637eaccf20ff0e4d298402c6e
MD5 ca1ca54ebf44e7c7517b842aafd33df7
BLAKE2b-256 a92c9e4b7a0fdb0d122796af34ace08d8e0b1ef297e0bd1b9b4f212076acd232

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