Updated Specter's inline caching implementation (markdown)

This commit is contained in:
Nathan Marz 2016-09-08 08:05:43 -04:00
parent ff9d2fd068
commit f5fd3c1a68

View file

@ -72,9 +72,9 @@ The last example shows what Specter does when it has a local variable in the pos
The same thing works for dynamic var references and special forms: The same thing works for dynamic var references and special forms:
```clojure ```clojure
[*a-dynamic-var*] => (coerce-nav *a-dynamic-*var) [*a-dynamic-var*] => (coerce-nav *a-dynamic-var*)
[^:direct-nav *a-dynamic-var*] => *a-dynamic-*var [^:direct-nav *a-dynamic-var*] => *a-dynamic-var*
[:a (if c (keypath a) STAY)] => (comp-navs <ANON> (coerce-nav (if c (keypath a) STAY))) [:a (if c (keypath a) STAY)] => (comp-navs <ANON> (coerce-nav (if c (keypath a) STAY)))
@ -83,7 +83,7 @@ The same thing works for dynamic var references and special forms:
## Dynamic navigators ## Dynamic navigators
There are two more additional use cases that Specter must handle, both of which are illustated by the `selected?` navigator. Consider these two uses of `selected?`: There are two more additional use cases that Specter must handle, both of which are illustrated by the `selected?` navigator. Consider these two uses of `selected?`:
```clojure ```clojure
(selected? (keypath a) even?) (selected? (keypath a) even?)