Welcome, I'm happy to see you here! Feel free to pick a function and add a happy example, the more the merrier!
> (eprin "there is a boo-boo on line " 33 "\n" )
there is a boo-boo on line 33
nil
(empty? {})
# => true
(let [c (ev/chan 1 )
before (ev/count c )]
(ev/give c :hi )
[before (ev/count c )])
# =>
'(0 1 )(->> (range 10 ) (map (fn [arg ] (* arg arg ))))
# => @[0 1 4 9 16 25 36 49 64 81] (from-pairs [[:hello "world" ] [:foo "bar" ]])
# => @{:foo "bar" :hello "world"} (var x 5 )
(%= x 3 )
(pp x ) # 2 (math/exp 1 ) # => 2.71828
math/e # => 2.71828 (apply * [1 2 3 ]) # -> 6
(* (splice [1 2 3 ])) # -> 6
(* ;[1 2 3 ]) # -> 6
(* 1 2 3 ) # -> 6 (< ) # -> true
(< 1 ) # -> true
(< 1 2 ) # -> true
(< 2 1 ) # -> false
(< 1 2 3 ) # -> true
(< 1 3 2 ) # -> false
(if-let [x true
y (not (not x ))]
:a
:b )
# => :a
(array 1 2.3 :a "foo" true nil [] {} (fn []))
# => @[1 2.3 :a "foo" true nil () {} <function 0x7FB2A3F02170>] (update @{:data @[:cherry :orange ]} :data (comp sorted |(array/push $ :apple )))
# => {:data @[:apple :cherry :orange]}
# note that all data structures must be mutable with @
(def c @{:size :small :roast :dark :add-ins @[:soy :almond :soy ]})
(defn add! [coffee extra ]
(update coffee :extras (comp sort |(array/push $ extra ))))
(add! c :chocolate )(drop 1 [1 1 2 3 5 8 ])
# => '(1 2 3 5 8) (doc doc ) # works
(doc* doc ) # symbol <function doc> not found
(doc* "doc" ) # same as (doc doc) (seq [i :range [0 3 ]
j :range [0 3 ]
:let [c (string/format "%c" (+ 97 i ))]]
[(keyword c ) j ])
# => '@[(:a 0) (:a 1) (:a 2) (:b 0) (:b 1) (:b 2) (:c 0) (:c 1) (:c 2)]