Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # while <code> (while(expression) (do codeblock)) </code> {{ https://www.tutorialspoint.com/clojure/images/while_statement.jpg }} <code> (ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] (def x (atom 1)) (while ( < @x 5 ) (do (println @x) (swap! x inc)))) (Example) </code> #### output <code> 1 2 3 4 </code> open/while.txt Last modified: 2024/10/05 06:15by 127.0.0.1