pythonic-fp.circulararray API

Detailed Documentation

Developer Tools - Queue based data structures

These are modeled after Python builtins. The initializers take at most one iterable while factory functions stand in for Python syntax.

Queue types:

  • class dtools.queues.fifo.FIFOQueue: First-In-First-Out Queue

  • class dtools.queues.lifo.LIFOQueue: Last-In-First-Out Queue

  • class dtools.queues.de.DEQueue: Double-Ended Queue

Create queues from specific values:

  • function dtools.queues.fifo.fifo_queue: Create a FIFOQueue

    • from function’s arguments pushed on in natural FIFO order

  • function dtools.queues.lifo.lifo_queue: Create a LIFOQueue

    • from function’s arguments pushed on in natural LIFO order

  • function dtools.queues.de.de_queue: Create a DEQueue

    • from function’s arguments pushed on from the right