(doall (map inc nil))
()
((comp dec inc) 0)
0
(-> Integer/MAX_VALUE Integer. inc)
2147483648
(map inc (range 5))
(1 2 3 4 5)
(and (map inc ()) :wanted?)
:wanted?
(first (iterate inc 2))
2
((comp str inc) 1)
"2"
(pr-str (map inc [1]))
"(2)"
(-> 2 inc -)
-3
(realized? (iterate inc 1))
true
((juxt inc dec) 6)
[7 5]
((juxt inc dec) 2)
[3 1]
(inc (or 0 val))
1
(class (inc (int 1)))
java.lang.Long
((comp inc +) 4)
5
((comp - inc) 1)
-2
(class (iterate inc 2))
clojure.lang.Iterate
(type (iterate inc 0))
clojure.lang.Iterate
((juxt inc dec) 5)
[6 4]
(class (iterate inc 0))
clojure.lang.Iterate
(update-in [1 2 3] [0] inc)
[2 2 3]
(keyword (str (inc 3)))
:4
(def ^String x inc)
#'user/x
((comp inc (constantly 1)))
2
((fnil inc 0) 2)
3
((juxt - inc) 1)
[-1 2]
(println (iterate inc 1))
nil
"(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 ...)\n"
(ifn? #(inc %))
true
(-> 1 inc (as-> n (* n n) (inc n)))
5
(let [x 0 x' (inc x) x'' (inc x')] x'')
2
(count (take-while identity (map identical? (iterate inc 0) (iterate inc 0))))
128
(defn incv "Like inc but returns a vector." [x] [(inc x)])
#'user/incv
(let [a (atom 0)] (list (swap! a inc) (swap! a inc)))
(1 2)
(let [x 0 x' (inc x) x'' (inc x')] (+ x'' x'))
3
(+ (inc 1) 10)
12
(list? (iterate inc 0))
false
(with-redefs [clojure.core/deref inc] @5)
6
(str (inc (int \A)))
"66"
(swap! (atom 42) inc)
43
(cond-> 1 false inc)
1
(inc (/ 17 7))
24/7
(map inc (int-array [1]))
(2)
(run! inc (range 10))
nil
((juxt inc identity) 0)
[1 0]
(((map inc) conj) [] 1)
[2]
((juxt inc dec) 0)
[1 -1]
(macroexpand '#(inc %))
(fn* [%1] (inc %1))
((fnil inc 0) nil)
1
(pr-str (iterate inc 0))
"(0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ...)"
(range 5 (inc 15))
(5 6 7 8 9 10 11 12 13 14 15)