From 473301e89c0c3738a79a16262d9da97555f64f74 Mon Sep 17 00:00:00 2001 From: Michael Fogleman Date: Mon, 18 Sep 2017 08:48:08 -0400 Subject: [PATCH] Document 'eachnav'. --- List-of-Navigators.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/List-of-Navigators.md b/List-of-Navigators.md index 7d41ce4..e09f4ed 100644 --- a/List-of-Navigators.md +++ b/List-of-Navigators.md @@ -35,6 +35,7 @@ - [cond-path](#cond-path) - [continue-then-stay](#continue-then-stay) - [continuous-subseqs](#continuous-subseqs) + - [eachnav](#eachnav) - [filterer](#filterer) - [if-path](#if-path) - [index-nav](#index-nav) @@ -569,6 +570,14 @@ Navigates to every continuous subsequence of elements matching `pred`. [11 12 20] ``` +## eachnav + +`(eachnav navigator)` + +Turns a navigator that takes one argument into a navigator that takes many arguments and uses the same navigator with each argument. There is no performance cost to using this. + +`keypath`, `must`, and `nthpath` are all implemented using eachnav, making multiple arguments possible. See their documentation here, or look at their implementation in Specter core. + ## filterer `(filterer & path)`