Skip to main content
Help us improve Python packaging – donate today!

Functional hierarchical zipper, with navigation, editing, and enumeration. See Huet

Project Description

Zipper [![Build Status](https://travis-ci.org/trivio/zipper.png)](https://travis-ci.org/trivio/zipper)
======

A datastructure, first described by Huet, is used to traverse and
manipulate immutable trees. This library is a port of the zipper
implementation found in Clojure.

Usage
-----

The zipper module provides several functions for creating a Loc object which
represents the current focal point in the tree.



```
>>> import zipper
>>> top = zipper.list([1, [2, 3], 4])

>>> print top.down().right().node()
[2,3]

>>> print top.down().right().down().node()
2

>>> print top.down().right().down().replace(0).root()
[1, [0, 3], 4]

```

Release history Release notifications

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
zipper-0.0.3.tar.gz (3.9 kB) Copy SHA256 hash SHA256 Source None Jan 7, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page