make terminal and vterminal select codepath no-ops

This commit is contained in:
nathanmarz 2017-12-21 13:04:26 -05:00
parent 7bd119aa52
commit 632e710b07
3 changed files with 9 additions and 10 deletions

View file

@ -1,7 +1,8 @@
## 1.0.6-SNAPSHOT ## 1.1.0-SNAPSHOT
* Add `vtransform` variant of `transform` that takes in collected values as a vector in the first argument rather than spliced into argument list. * Add `vtransform` variant of `transform` that takes in collected values as a vector in the first argument rather than spliced into argument list.
* Add `vterminal` that takes in collected vals as vector in first argument rather than spliced into argument list. * Add `vterminal` that takes in collected vals as vector in first argument rather than spliced into argument list.
* Change `terminal` to be a no-op on select codepath
## 1.0.5 ## 1.0.5

View file

@ -1 +1 @@
1.0.6-SNAPSHOT 1.1.0-SNAPSHOT

View file

@ -643,28 +643,26 @@
i/STAY*) i/STAY*)
(def (def
^{:doc "For usage with `multi-transform`, defines an endpoint in the navigation ^{:doc "Defines an endpoint in the navigation the transform function run. The transform
that will have the parameterized transform function run. The transform
function works just like it does in `transform`, with collected values function works just like it does in `transform`, with collected values
given as the first arguments"} given as the first arguments"}
terminal terminal
(richnav [afn] (richnav [afn]
(select* [this vals structure next-fn] (select* [this vals structure next-fn]
(i/throw-illegal "'terminal' should only be used in multi-transform")) NONE)
(transform* [this vals structure next-fn] (transform* [this vals structure next-fn]
(i/terminal* afn vals structure)))) (i/terminal* afn vals structure))))
(def (def
^{:doc "For usage with `multi-transform`, defines an endpoint in the navigation ^{:doc "Defines an endpoint in the navigation the transform function run.The transform
that will have the parameterized transform function run. The transform
function works differently than it does in `transform`. Rather than receive function works differently than it does in `transform`. Rather than receive
collected vals spliced in as the first arguments to the function, this function collected vals spliced in as the first arguments to the function, this function
always takes two arguemnts. The first is all collected always takes two arguemnts. The first is all collected vals in a vector, and
vals in a vector, and the second is the navigated value."} the second is the navigated value."}
vterminal vterminal
(richnav [afn] (richnav [afn]
(select* [this vals structure next-fn] (select* [this vals structure next-fn]
(i/throw-illegal "'terminal' should only be used in multi-transform")) NONE)
(transform* [this vals structure next-fn] (transform* [this vals structure next-fn]
(afn vals structure)))) (afn vals structure))))