Namespaces

 
1.0.0-SNAPSHOT Arrow_down_16x16

intersection

net.cgrand.enlive-html

  • (intersection preds)

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:279 top

(defn intersection [preds]
  (condp = (count preds)
    1 (first preds)
    2 (let [[f g] preds] #(and (f %) (g %)))
    3 (let [[f g h] preds] #(and (f %) (g %) (h %)))
    4 (let [[f g h k] preds] #(and (f %) (g %) (h %) (k %)))
    (fn [x] (every? #(% x) preds))))
Vars in net.cgrand.enlive-html/intersection: = and condp count defn every? first fn let
Used in 0 other vars

Comments top

No comments for intersection. Log in to add a comment.