open:dotimes

dotimes

(dotimes (variable value)
   statement)

dotimes_statement.jpg

(ns clojure.examples.hello
   (:gen-class))

;; This program displays Hello World
(defn Example []
   (dotimes [n 5]
   (println n)))
(Example)

Output

0
1
2
3
4

  • open/dotimes.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1