I have a little code that doesn't want to work at all when I execute a loop, as shown below:
...
(defn my-function []
(println "Hi") ;this works
(for [i (range 10)] (println "Hello") ;this doesn't work!
)
)
...
I donβt understand what the problem is, all the code inside the loop seems to be ignored, and βHelloβ prints without problems
I call "myfunction" through a GUI button event, for example:
...
(.append output-text (with-out-str (time (my-function))))
...
Do you think that a problem may arise in the GUI or something else that I am missing? Any suggestion? I know that I should use REPL for testing, but it does not work with Netbeans ...: S
Many thanks for your help.
source
share