(-> "foo" .getBytes first int inc)
103
(let [a 1] ((fn [] (inc a))))
2
(-> {:bar inc} :bar (apply 5 []))
6
(if (pos? -4) (inc 12) 12)
12
(str (map inc [1 2 3]))
"clojure.lang.LazySeq@7c42"
(Integer/toString (inc (Integer/parseInt "a" 36)) 36)
"b"
(->> (range 10) ((partial map inc)))
(1 2 3 4 5 6 7 8 9 10)
(take 4 (cycle '(inc identity)))
(inc identity inc identity)
((comp first ((partial juxt inc))) 1)
2
(-> 1 ((fn [x] (inc x))))
2
(or nil 1 (iterate inc 0))
1
(map dec (map inc (range 5)))
(0 1 2 3 4)
(let [a 1] `(inc ~a))
(clojure.core/inc 1)
(apply map [inc [1 2 3]])
(2 3 4)
(ns my.core (:refer-clojure :rename {inc core-inc}))
nil
(mapv inc [4 3 2 1])
[5 4 3 2]
(map inc [0 1 2 3])
(1 2 3 4)
(map #(% 1) [inc dec])
(2 0)
(def foo (fn [x] (inc x)))
#'user/foo
(sequence (map inc) [1 2 3])
(2 3 4)
(update-in [1 2 3] [2] inc)
[1 2 4]
(let [a 1] '(inc a))
(inc a)
(doall (take 10 (iterate inc 0)))
(0 1 2 3 4 5 6 7 8 9)
(map inc #{1 2 3})
(2 4 3)
(chunked-seq? (filter even? (map inc (range))))
false
(map inc (into-array [1 2 3]))
(2 3 4)
((apply juxt (repeat 100000 inc)) 42)
[43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 43 ...
(partition-all 3 (map inc (range 10)))
((1 2 3) (4 5 6) (7 8 9) (10))
(class (map inc [1 2 3]))
clojure.lang.LazySeq
(map inc (list 1 2 3))
(2 3 4)
(count (map inc [1 2 3]))
3
(map type [(range) (iterate inc 0)])
(clojure.lang.Iterate clojure.lang.Iterate)
(last (take 10 (iterate inc 0)))
9
(defn go-up [n] (iterate inc n))
#'user/go-up
(def x (map inc (range 50000000)))
#'user/x
(let [a 1 b (inc a) c (+ a b) c (inc c)] c)
4
(filter even? (map inc (range 5)))
(2 4)
((comp (partial bit-and 3) inc) -1)
0
(mapv inc '(1 2 3))
[2 3 4]
(repeatedly 20 #(inc (rand-int 20)))
(8 9 10 14 6 11 8 12 12 18 14 3 5 1 6 20 11 10 5 13)
(type (map inc [1 2 3]))
clojure.lang.LazySeq
(update-in {} [:a :b] (fnil inc 0))
{:a {:b 1}}
(defmacro run [expr] `(inc ~expr))
#'user/run
(last (take 2 (iterate inc 4)))
5
(map list [inc dec] [1 1])
((#object [clojure.core$inc 0x4e7bae5c "clojure.core$inc@4e7bae5c"] 1) (#object [clojure.core$dec 0x7ae92de2 "clojure.core$dec@7ae92de2"] 1))
((apply juxt [dec identity inc]) 2)
[1 2 3]
(-> \tab int inc (repeat 0.0))
(0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0)
(apply * (range 1 (inc 5)))
120
(-> 1 inc dec (* 10))
10
((let [a 1] (fn [] (inc a))))
2