


Sorted-set sorted-set-by (/) sorted-set sorted-set-by (/) ordered-set (-map/) int-set dense-int-set
CHEATSHEET UPDATE
lastIndexOfĪssoc assoc-in pop subvec replace conj rseq update update-in (my-vec idx) → ( nth my-vec idx) get peek. Vectors (conj, pop, & peek at end) Create Lists (conj, pop, & peek at beginning) Create Sequential? associative? sorted? counted? reversible?Ĭoll? list? vector? set? map? seq? record? map-entry? Symbol symbol? gensym literals: my-sym my.ns/fooĬount empty not-empty into conj (clojure.walk/) walk prewalk prewalk-demo prewalk-replace postwalk postwalk-demo postwalk-replace (1.9) bounded-countĭistinct? empty? every? not-every? some not-any? Keyword keyword? find-keyword literals: :kw :my.name.space/kw ::in-cur-namespace ::namespace-alias/kw String? (clojure.string/) blank? starts-with? ends-with? includes?Ĭhar char? char-name-string char-escape-string literals: \a \newline (more at link) (clojure.string/) trim trim-newline triml trimr (clojure.string/) capitalize lower-case upper-case #" pattern" re-find re-seq re-matches re-pattern re-matcher re-groups (clojure.string/) replace replace-first re-quote-replacement Note: \ in #"" is not escape char. Str format "a string" "escapes \b\f\n\t\r\" octal \377 hex \ucafe" See also section IO/to stringĬount get subs compare (clojure.string/) join escape split split-lines replace replace-first reverse index-of last-index-of (1.11) (re/) parse-boolean parse-double parse-long parse-uuid *unchecked-math* unchecked-add unchecked-dec unchecked-inc unchecked-multiply unchecked-negate unchecked-subtract Zero? pos? neg? even? odd? number? rational? integer? ratio? decimal? float? (1.9) double? int? nat-int? neg-int? pos-int? (1.11) NaN? infinite?
CHEATSHEET MOD
+ - * / quot rem mod inc dec max min +' -' *' inc' dec' (1.11) absīit-and bit-or bit-xor bit-not bit-flip bit-set bit-shift-right bit-shift-left bit-and-not bit-clear bit-test unsigned-bit-shift-right (see BigInteger for integers larger than Long)īyte short int long float double bigdec bigint num rationalize biginteger
