Either this, or use the "when" form.
http://clojuredocs.org/clojure_core/clojure.core/when
2011/7/11 Tassilo Horn :
> Antonio Recio writes:
>
> Hi Antonio,
>
>> I get the error "Too many arguments to if" with this. Do you have any
>> suggestion?
>
Antonio Recio writes:
Hi Antonio,
> I get the error "Too many arguments to if" with this. Do you have any
> suggestion?
`if' expects exacly one test, one then-form, and one else-form. Your
first and second `if' contain two forms in else. You have to
I get the error "Too many arguments to if" with this. Do you have any
suggestion?
(defn make-tree [tree [n1 n2 n3 n4]]
(.addItem tree n1)
(if (empty? n2)
(.setChildrenAllowed tree n1 false)
(doto tree
(.addItem n2)
(.setParent n2 n1)
(.expandItemsRecu