【发布时间】:2020-03-08 02:08:30
【问题描述】:
(defn recurse
[temp total] ;total is: (and true true(and false))
(map (fn [i]
(cond
(seq? i) (println "");If total is not a single parenthesis (single sequence), recur until it is
(= i 'and) (System/exit 0) ;I want this to be called only when the **second** "and" is called
:else (println "This should never print I think")
))
idealreturn)
)
我希望 (System/exit 0) 仅在 在 total 中检测到第二个“and”而不是之前被调用。我该怎么做呢?
【问题讨论】: