improve docs
This commit is contained in:
parent
0c31819eba
commit
93210092e9
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ You can even precompile selectors that require parameters! For example, `keypath
|
|||
(select [(keypath k) ALL odd?] data))
|
||||
```
|
||||
|
||||
Without precompilation this code will execute significantly slower. But it seems like it requires precompilation because the selector path is dependent on an argument to the function. Specter gets around this by allowing you to precompile and bind the parameters to the selector later, like so:
|
||||
It seems difficult to precompile this path because it is dependent on an argument to the function it is within. Specter gets around this by allowing you to precompile a path without its parameters and bind the parameters to the selector later, like so:
|
||||
|
||||
```clojure
|
||||
(def foo-path (comp-paths keypath ALL odd?))
|
||||
|
|
|
|||
Loading…
Reference in a new issue