File tree 2 files changed +32
-4
lines changed
2 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 6
6
(->> " ola"
7
7
(x )))
8
8
9
-
10
9
(->> " ola"
11
10
(x ))
12
11
22
21
(println " Twice 15 =" (twice 15 ))
23
22
(println " Six times 15 =" (six-times 15 )))
24
23
24
+ (letfn [(twice [x]
25
+ (* x 2 ))]
26
+ (->> " ola"
27
+ (x )))
28
+
29
+ (letfn [(foo [x y]
30
+ (->> x
31
+ y
32
+ :bar ))
33
+ (twice [x]
34
+ (* x 2 ))
35
+ (six-times [y]
36
+ (* (twice y) 3 ))]
37
+ (foo #{:foo :bar :biz } :foo ))
38
+
25
39
; ; vim:ft=clojure:
Original file line number Diff line number Diff line change 6
6
(->> " ola"
7
7
(x )))
8
8
9
-
10
9
(->> " ola"
11
10
(x ))
12
11
16
15
(x ))))
17
16
18
17
(letfn [(twice [x]
19
- (* x 2 ))
18
+ (* x 2 ))
20
19
(six-times [y]
21
- (* (twice y) 3 ))]
20
+ (* (twice y) 3 ))]
22
21
(println " Twice 15 =" (twice 15 ))
23
22
(println " Six times 15 =" (six-times 15 )))
24
23
24
+ (letfn [(twice [x]
25
+ (* x 2 ))]
26
+ (->> " ola"
27
+ (x )))
28
+
29
+ (letfn [(foo [x y]
30
+ (->> x
31
+ y
32
+ :bar ))
33
+ (twice [x]
34
+ (* x 2 ))
35
+ (six-times [y]
36
+ (* (twice y) 3 ))]
37
+ (foo #{:foo :bar :biz } :foo ))
38
+
25
39
; ; vim:ft=clojure:
You can’t perform that action at this time.
0 commit comments