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. # loop <code> loop [binding] (condition (statement) (recur (binding)) </code> {{ https://www.tutorialspoint.com/clojure/images/loop_statement.jpg }} ### Example <code> (ns clojure.examples.hello (:gen-class)) ;; This program displays Hello World (defn Example [] (loop [x 10] (when (> x 1) (println x) (recur (- x 2))))) (Example) </code> #### Output <code> 10 8 6 4 2 </code> ## Refs - https://www.tutorialspoint.com/clojure/clojure_loop_statement.htm open/loop.txt Last modified: 2024/10/05 06:15by 127.0.0.1