pythonic-fp-circulararray

Project pythonic-fp-circulararray one of the Pythonic FP PyPI projects.

PyPI 6.0.1 release

Circular Array

Stateful circular array data structures.

  • O(1) pops and pushes either end

  • O(1) size determination

  • O(1) indexing

Module

Class

Factory

Description

pythonic_fp.circulararray.auto

CA

ca

Variable storage capacity circular array.

pythonic_fp.circulararray.fixed

CAF

caf

Fixed storage capacity circular array.

Note

  • Class constructors CA and CAF take an optional iterator to populate the circular array.

  • Factory Functions ca and caf take a variable number of parameters for the circular array.