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
  • 마지막으로 수정됨: 2021/11/22 23:32
  • 저자 127.0.0.1