precompile ALL, LAST, and FIRST

This commit is contained in:
Nathan Marz 2015-09-11 17:36:16 -04:00
parent 993015b128
commit f7f2911350
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
## 0.7.0
* Added late-bound parameterization feauture: allows selectors that require params to be precompiled without the parameters, and the parameters are supplied later in bulk. This effectively enables Specter to be used in any situation with very high performance.
* Converted Specter built-in selectors to use late-bound parameterization when appropriate
* ALL, FIRST, and LAST are now precompiled
## 0.6.2
* Added not-selected? selector
* Added transformed selector

View file

@ -134,13 +134,13 @@
;; Built-in pathing and context operations
(def ALL (i/->AllStructurePath))
(def ALL (comp-paths (i/->AllStructurePath)))
(def VAL (i/->ValCollect))
(def LAST (i/->PosStructurePath last i/set-last))
(def LAST (comp-paths (i/->PosStructurePath last i/set-last)))
(def FIRST (i/->PosStructurePath first i/set-first))
(def FIRST (comp-paths (i/->PosStructurePath first i/set-first)))
(defparamspath
^{:doc "Uses start-fn and end-fn to determine the bounds of the subsequence