Namespaces

 
1.0.0-SNAPSHOT Arrow_down_16x16
  • (text-pred f)
Turns a predicate function on strings (text nodes) into a predicate-step usable in selectors.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/cgrand/enlive_html.clj:243 top

(defn text-pred 
 "Turns a predicate function on strings (text nodes) into a predicate-step usable in selectors."
 [f]
  #(let [n (z/node %)] (and (string? n) (f n))))
Vars in net.cgrand.enlive-html/text-pred: and defn let string?
Used in 0 other vars

Comments top

No comments for text-pred. Log in to add a comment.