This package browser is in early development. Mind the rough edges.

python-ilinkedlist 0.4.0-0.b5ea3f6

Immutable linked list library

This is a implementation of immutable linked lists for Python. It contains nil (the empty linked list) and a Pair class for nodes. Since a linked list is treated as immutable, it is hashable, and its length can be retrieved in constant time. Some of the terminology is inspired by LISP. It is possible to create an improper list by creating a Pair with a non-list cdr.

Installation

Install python-ilinkedlist 0.4.0-0.b5ea3f6 as follows:

guix install python-ilinkedlist@0.4.0-0.b5ea3f6

Or install the latest version:

guix install python-ilinkedlist

You can also install packages in augmented, pure or containerized environments for development or simply to try them out without polluting your user profile. See the guix shell documentation for more information.