Socket
Socket
Sign inDemoInstall

zipper

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zipper

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


Maintainers
1

Zipper Build Status

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]

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc