(defn recurse_fun ;assume user types in (recurse_fun '(true false true) "")
[input final]
(cond
(empty? input) (System/exit 0) ;at this point final should equal (false true false)
)
(cond
(= 'false (first input)) (recurse_fun (rest input) (concat 'true final))
;^ recurse with new parameters of the rest of input and true concated with previous final
(= 'true (first input)) (recurse_fun (rest input) (concat 'false final))
;^ recurse with new parameters of the rest of input and false concated with previous final
)
Я хочу, чтобы final равнялось "false true false" при вызове (System / exit 0). Я считаю, что это связано с Конкатом. Любая помощь будет оценена.