Re: unknown recursion

2014-10-04 Thread Maciej Jaśkowski
A single issue here: This (defn bal-parens? [parens] (let [replaced (clojure.string/replace parens "()" "") checked (re-seq #"\(\)" replaced)] (println checked) (if-not (nil? checked) (bal-parens? replaced) (do (println (str "replaced is " replaced)) (empty?

unknown recursion

2014-10-04 Thread emptya45
Hi, I am trying to write a function to return a boolean as to whether parenthesis are balanced or not? (defn bal-parens? [parens] (let [replaced (clojure.string/replace parens "()" "") checked (re-seq #"\(\)" replaced)] (println checked) (if-not (nil? checked) (bal-parens