Comments (1)
If all you care about is nodes at depth 1, then you can just use the path [:children ALL]
. For other depth values, you could dynamically construct a path targeting only that depth using comp-navs
to compose multiple (path :children ALL)
together. Otherwise, the generic technique for keeping track of your depth in a recursive path is to use value collection and then to check the number of collected values with collected?
.
from specter.
Related Issues (20)
- Make it possible to run individual benchmark(s) HOT 1
- remove first matching element from a vector HOT 23
- No implementation of method: :kv-reduce of protocol: IKVReduce HOT 2
- Make MAP-VALS work on records
- How to insert map at the end of a vector? HOT 1
- Calling `first` on ALL MAP-VALS HOT 2
- (s/transform s/ALL identity "abc") returns a reversed sequence. Is this expected? HOT 1
- filter map of maps by key (regex or substring) HOT 2
- clj-kondo config HOT 3
- Error: Not a navigator: [object Object] cljs.core/MetaFn HOT 8
- Add license to project.clj
- Remove all leaves that don't match a predicate HOT 3
- Add `SORTED` and associated navigators HOT 4
- recursive use of multi-path on cljs ignores 20th entry
- Transforming a string with the `ALL` navigator yields a reversed sequence HOT 2
- Need a `navigable?` operation HOT 1
- Changing code with a stack like pattern HOT 1
- are there plans to open source the maintained fork of specter? HOT 2
- Exception while using `before-index`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from specter.