GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing clojure.github.io — clojure.zip - Clojure v1.12.4 API documentation
Clojure v1.12.4 API
Namespaces
Other Versions
Clojure Home
API for clojure.zip - Clojure v1.12.4 (stable)by Rich HickeyFull namespace name: clojure.zip OverviewFunctional hierarchical zipper, with navigation, editing, and enumeration. See Huet Public Variables and Functionsappend-childfunctionUsage: (append-child loc item) Inserts the item as the rightmost child of the node at this loc, without movingAdded in Clojure version 1.0 Source branch?functionUsage: (branch? loc) Returns true if the node at loc is a branchAdded in Clojure version 1.0 Source childrenfunctionUsage: (children loc) Returns a seq of the children of node at loc, which must be a branchAdded in Clojure version 1.0 Source downfunctionUsage: (down loc) Returns the loc of the leftmost child of the node at this loc, or nil if no childrenAdded in Clojure version 1.0 Source editfunctionUsage: (edit loc f & args) Replaces the node at this loc with the value of (f node args)Added in Clojure version 1.0 Source end?functionUsage: (end? loc) Returns true if loc represents the end of a depth-first walkAdded in Clojure version 1.0 Source insert-childfunctionUsage: (insert-child loc item) Inserts the item as the leftmost child of the node at this loc, without movingAdded in Clojure version 1.0 Source insert-leftfunctionUsage: (insert-left loc item) Inserts the item as the left sibling of the node at this loc, without movingAdded in Clojure version 1.0 Source insert-rightfunctionUsage: (insert-right loc item) Inserts the item as the right sibling of the node at this loc, without movingAdded in Clojure version 1.0 Source leftfunctionUsage: (left loc) Returns the loc of the left sibling of the node at this loc, or nilAdded in Clojure version 1.0 Source leftmostfunctionUsage: (leftmost loc) Returns the loc of the leftmost sibling of the node at this loc, or selfAdded in Clojure version 1.0 Source leftsfunctionUsage: (lefts loc) Returns a seq of the left siblings of this locAdded in Clojure version 1.0 Source make-nodefunctionUsage: (make-node loc node children) Returns a new branch node, given an existing node and new children. The loc is only used to supply the constructor.Added in Clojure version 1.0 Source nextfunctionUsage: (next loc) Moves to the next loc in the hierarchy, depth-first. When reaching the end, returns a distinguished loc detectable via end?. If already at the end, stays there.Added in Clojure version 1.0 Source pathfunctionUsage: (path loc) Returns a seq of nodes leading to this locAdded in Clojure version 1.0 Source prevfunctionUsage: (prev loc) Moves to the previous loc in the hierarchy, depth-first. If already at the root, returns nil.Added in Clojure version 1.0 Source removefunctionUsage: (remove loc) Removes the node at loc, returning the loc that would have preceded it in a depth-first walk.Added in Clojure version 1.0 Source replacefunctionUsage: (replace loc node) Replaces the node at this loc, without movingAdded in Clojure version 1.0 Source rightfunctionUsage: (right loc) Returns the loc of the right sibling of the node at this loc, or nilAdded in Clojure version 1.0 Source rightmostfunctionUsage: (rightmost loc) Returns the loc of the rightmost sibling of the node at this loc, or selfAdded in Clojure version 1.0 Source rightsfunctionUsage: (rights loc) Returns a seq of the right siblings of this locAdded in Clojure version 1.0 Source rootfunctionUsage: (root loc) zips all the way up and returns the root node, reflecting any changes.Added in Clojure version 1.0 Source seq-zipfunctionUsage: (seq-zip root) Returns a zipper for nested sequences, given a root sequenceAdded in Clojure version 1.0 Source upfunctionUsage: (up loc) Returns the loc of the parent of the node at this loc, or nil if at the topAdded in Clojure version 1.0 Source vector-zipfunctionUsage: (vector-zip root) Returns a zipper for nested vectors, given a root vectorAdded in Clojure version 1.0 Source xml-zipfunctionUsage: (xml-zip root) Returns a zipper for xml elements (as from xml/parse), given a root elementAdded in Clojure version 1.0 Source zipperfunctionUsage: (zipper branch? children make-node root) Creates a new zipper structure. branch? is a fn that, given a node, returns true if can have children, even if it currently doesn't. children is a fn that, given a branch node, returns a seq of its children. make-node is a fn that, given an existing node and a seq of children, returns a new branch node with the supplied children. root is the root node.Added in Clojure version 1.0 Source Copyright 2007-2025 by Rich Hickey
Logo & site design by Tom Hickey.
Clojure auto-documentation system by Tom Faulhaber. |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |