Recursion fixes.

Fixes the hyperlinks and also the TOC.
This commit is contained in:
Michael Fogleman 2017-10-09 13:27:58 -07:00
parent 9aaef0d578
commit 50db6a076a

View file

@ -12,6 +12,7 @@ Specter is useful for navigating through nested data structures, and then return
- [Mutually Recursive Paths](#mutually-recursive-paths) - [Mutually Recursive Paths](#mutually-recursive-paths)
- [Applications](#applications) - [Applications](#applications)
- [Navigate to all of the instances of one key in a map](#navigate-to-all-of-the-instances-of-one-key-in-a-map) - [Navigate to all of the instances of one key in a map](#navigate-to-all-of-the-instances-of-one-key-in-a-map)
- [Recursively navigate to every map in a map of maps](#recursively-navigate-to-every-map-in-a-map-of-maps)
- [Find the "index route" of a value within a data structure](#find-the-index-route-of-a-value-within-a-data-structure) - [Find the "index route" of a value within a data structure](#find-the-index-route-of-a-value-within-a-data-structure)
<!-- markdown-toc end --> <!-- markdown-toc end -->
@ -232,7 +233,7 @@ You want to recursively navigate this data structure and add a key-value pair to
{:a {:b {:c 1, :X 0}, :d 2, :X 0}, :e {:f 3, :g 4, :X 0}, :X 0} {:a {:b {:c 1, :X 0}, :d 2, :X 0}, :e {:f 3, :g 4, :X 0}, :X 0}
``` ```
`MAP-NODES` illustrates how to combine recursive paths with `[continue-then-stay](https://github.com/nathanmarz/specter/wiki/List-of-Navigators#continue-then-stay)`, which navigates to the provided path and then to the current element. This should also point to how you might use recursive paths with `[stay-then-continue](https://github.com/nathanmarz/specter/wiki/List-of-Navigators#stay-then-continue)`, which navigates to the current element and then to the provided path. `MAP-NODES` illustrates how to combine recursive paths with [continue-then-stay](https://github.com/nathanmarz/specter/wiki/List-of-Navigators#continue-then-stay), which navigates to the provided path and then to the current element. This should also point to how you might use recursive paths with [stay-then-continue](https://github.com/nathanmarz/specter/wiki/List-of-Navigators#stay-then-continue), which navigates to the current element and then to the provided path.
## Find the "index route" of a value within a data structure ## Find the "index route" of a value within a data structure