// momentum

tracking since W49

// why it's here

  • Active: last commit today
  • Around since 2017 and still shipping

// how to help

// readme

ExZipper

An Elixir implementation of [Huet’s Zipper][huet], with gratitude to Rich Hickey’s [Clojure implementation][clojure].

Installation

@deps [
  ex_zipper: "~> 1.0"
]

Usage

Below is an outline of the API provided by ExZipper.Zipper. See the full documentation here for usage examples

Creating zippers

ExZipper.Zipper provides one zipper construction function for working with plain lists, ExZipper.Zipper.list_zipper/1

iex> Zipper.list_zipper([1,[],2,[3,[4,5]]])

For other tree shapes, define a module that implements the ExZipper.Tree behaviour and pass it, along with your root data structure, to ExZipper.Zipper.new/2. The behaviour has three callbacks:

  1. branch?/1 returns whether a node is a branch (a node that can have children, even if it currently has none)
  2. children/1 returns the children of a branch node, in order
  3. make_node/2 returns a new node built from an existing node and a new list of children. For any branch node, children(make_node(node, kids)) must equal kids, or edits made through the zipper will be lost when the tree is rebuilt
Read the full README on GitHub β†—

Health score

Is the project alive and maintained right now? A 0–100 pulse recomputed nightly from commit recency, rhythm, how fast issues close, and how quickly PRs get merged.

How it's calculated

Undervalued score

Activity relative to attention (stars + watchers). Above 50 means a lot of activity for a project its size. Recomputed nightly from commit velocity, contributor effort, issue resolution, fork utility, release cadence, and project maturity β€” divided by a logarithmic reach factor.

How it's calculated

Tags

Tags are independent behavioral signals computed nightly. A project can hold multiple at once. They drive the home page sections.

How it's calculated