[ create a new paste ] login | about

Link: http://codepad.org/Q8k2qRk8    [ raw code | fork ]

fgtrjhyu - Plain Text, pasted on Jun 16:
1
2
3
4
5
6
7
8
9
10
11
12
;DO NOT write like this
;procedual programming
(def x 3)

(defn foo [y]
  (def x (+ x y)))

(defn bar []
  (print (format "x = %d%n" x)))

(dotimes [y 10]
  (do (foo y) (bar)))


Create a new paste based on this one


Comments: