Skip to main content
1 vote
1 answer
108 views

I've created a small library called StreamX, which acts like a type-safe, index-aware zipper to enable parallel streaming over multiple lists. It supports functional operations like forEach, map, ...
M S's user avatar
  • 19
1 vote
1 answer
225 views

I am trying to create a Tree Zipper using Rust. It is inspired by this answer but I am using struct fields instead of Vec for the childs. I want to have a tree of nodes, e.g.: 7 / \ 4 11 / ...
Jonas's user avatar
  • 131k
1 vote
1 answer
186 views

I have two rose trees in Haskell of m and n nodes, respectively. I want to replace the ith node of the first tree with the jth node of the second tree. e.g. tree 1: R ...
ayaye's user avatar
  • 31
10 votes
1 answer
376 views

I am currently implementing derivatives of regular data structures, in Agda, as presented in the One-Hole Context paper by Conor McBride [5]. In implementing it straight out of the OHC paper, which ...
N. Brett's user avatar
  • 169
1 vote
4 answers
333 views

When you iterate through an arbitrarily nested Clojure zipper in a depth-first fashion via z/next, can you get or reconstruct the already visited part of the zipper, preserving its structure? For ...
Jindřich Mynarz's user avatar
1 vote
1 answer
112 views

I made my way thru the Tutorial available at Learn your Haskell and I ask myself why the Author uses a list as the second type for the implemented Zipper? Here is the relevant Code: type Name = ...
Koschi13's user avatar
  • 619
2 votes
3 answers
580 views

Say I have a tree like this. I would like to obtain the paths to child nodes that only contain leaves and not non-leaf child nodes. So for this tree root ├──leaf123 ├──level_a_node1 │ ├──leaf456 ├...
Paul C's user avatar
  • 8,429
0 votes
1 answer
180 views

I'm using Clojure's zippers to implement what I thought wouldn't be particularly challenging but it seems I may be missing something. Essentially what I want to do is, given some data structure as a ...
Astronought's user avatar
0 votes
1 answer
75 views

I have a clojure map that looks like this: {"l1" [{"name" "s1", "url" "something", "coordinates" {"latitude" 100, "longitude" 200}} {"name" "s2", "url" "something", "coordinates" {"latitude" ...
saga's user avatar
  • 2,143
1 vote
3 answers
259 views

I want to write a function for a zipper that removes all right siblings of a node while staying at the same location. (defn remove-all-rights-1 [loc] (if (zip/right loc) (recur (zip/remove (...
erdos's user avatar
  • 3,603
2 votes
2 answers
167 views

I'm writing a tree ( business process decision tree ) in clojure data structure . (require clojure.zip :as z) (z/vector-zip [ :billed? [:yes [:check-bank-account] ...
Shawn Zhang's user avatar
  • 1,883
1 vote
2 answers
305 views

I am looking to transform a clojure tree structure into a map with its dependencies For example, an input like: [{:value "A"} [{:value "B"} [{:value "C"} {:value "D"}] [{:value "E"} [{:...
Rahul S's user avatar
  • 11
5 votes
0 answers
220 views

I am currently searching for implementations of Huet's Zipper ``in the wild''. So far, I have found: The agda compiler (correct me if I'm wrong) uses the zipper for the eliminator of call-by-need ...
N. Brett's user avatar
  • 169
0 votes
1 answer
302 views

Say I have a tree where I want to visit - and that should include the possibility to modify the visited items - all items that match the path (def visit-path [:b :all :x :all]) where I use :all as a ...
Evgeniy Berezovsky's user avatar
1 vote
1 answer
114 views

I have the following: data Expr : Type -> Type where Lift : a -> Expr a Add : Num a => Expr a -> Expr a -> Expr a And : Expr Bool -> Expr Bool -> Expr Bool Cnst : Expr ...
Donovan's user avatar
  • 69

15 30 50 per page
1
2 3 4 5
7