You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(declare func<10 func<20)
;; without declare you will receive an error similar to:
;; "Unable to resolve symbol: func10 in this context"
(defn func<10 [x]
(cond
(< x 10) (func10 (inc x))
(< x 20) (func20 x)
:else "too far!"))
(defn func<20 [x]
(cond
(< x 10) (func10 x)
(< x 20) "More than 10, less than 20"
:else "too far!"))
I guess, that func10 and func20 referenced inside the functions definitions should actually be "func<10" and "funct<20"
The text was updated successfully, but these errors were encountered:
jumarko
pushed a commit
to jumarko/guides
that referenced
this issue
Jul 26, 2016
The clojure.core guide demonstrates following example:
I guess, that func10 and func20 referenced inside the functions definitions should actually be "func<10" and "funct<20"
The text was updated successfully, but these errors were encountered: