fix api doc for cond-path

This commit is contained in:
Nathan Marz 2015-06-19 14:27:22 -04:00
parent 231fe9c95c
commit bb1a70c339

View file

@ -185,10 +185,11 @@
(->PutValCollector val)) (->PutValCollector val))
(defn cond-path (defn cond-path
"Takes in alternating cond-fn selector cond-fn selector... "Takes in alternating cond-path selector cond-path selector...
Tests the structure on the cond-fn, and if it matches uses the following selector for Tests the structure if selecting with cond-path returns anything.
the rest of the selector. Otherwise, it moves on to the next selector. If nothing If so, it uses the following selector for this portion of the navigation.
matches, then the structure is not selected." Otherwise, it tries the next cond-path. If nothing matches, then the structure
is not selected."
[& conds] [& conds]
(->> conds (->> conds
(partition 2) (partition 2)