Namespaces

 
1.0.0-SNAPSHOT Arrow_down_16x16
  • (union 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:287 top

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

Comments top

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