Clojure

Table of Contents

The documen for clojure is terrible. I like the scheme and common-lisp document better. I simply want to read a well sectioned document containing all things.

Suspend the interest for clojure for now.

The old clojure page

1 Type

1.1 Number

1.1.1 Arithmetic

  • +-*/
  • quot
  • rem
  • mod
  • inc
  • dec
  • max
  • min
  • with-precision

1.1.2 Compare

  • =
  • ==
  • not=
  • <, <=, >, >=

1.1.3 Bitwise

  • bit-and
  • bit-or
  • bit-xor
  • bit-flip
  • bit-not
  • bit-clear
  • bit-set
  • bit-shift-right
  • bit-shift-left
  • bit-test

1.1.4 Cast

  • byte
  • short
  • int
  • long
  • float
  • double
  • bigint
  • bigdec
  • num
  • rationalize

1.1.5 Predicate

  • nil?
  • identical?
  • zero?
  • pos?
  • neg?
  • even?
  • odd?

Other

  • number?
  • rational?
  • integer?
  • ratio?
  • decimal?
  • float?

1.1.6 Random

  • rand
  • rand-int

1.2 symbols & keywords

literals for keywords: :kw, :my.ns/kw, ::in-cur-ns

1.3 String

1.3.1 Use

  • count
  • get
  • subs
  • join
  • escape
  • split
  • split-lines
  • replace
  • replace-first
  • reverse
  • index-of
  • last-index-of

1.3.2 Regex

  • #"pattern"
  • re-find
  • re-seq
  • re-matches
  • re-pattern
  • re-matcher
  • re-groups
  • replace
  • replace-first
  • re-quote-replacement

1.3.3 Letter

  • capitalize
  • lower-case
  • upper-case

1.3.4 trim

  • trim
  • trim-newline
  • triml
  • trimr

1.3.5 Predicate

  • string?
  • blank?
  • starts-with?
  • ends-with?
  • includes?

1.3.6 characters

  • literals: \a \newline
  • char
  • char?
  • char-name-string
  • char-escape-string

2 Collections

2.1 Collection

2.1.1 Generic

  • count
  • empty
  • not-empty

2.1.2 ops

  • into
  • conj
  • walk
  • prewalk
  • prewalk-demo
  • prewalk-replace

2.1.3 Predicates

  • distince?
  • empty?
  • every?
  • not-every?
  • some
  • not-any?

2.1.4 Capabilities

  • sequential?
  • associative?
  • sorted?
  • counted?
  • reversible?
  • coll?
  • list?
  • vector?
  • set?
  • map?
  • seq?
  • record?
  • map-entry?

2.2 List

  • list
  • list*
  • first
  • nth
  • peek
  • .indexOf
  • .lastIndexOf
  • cons
  • conj
  • rest
  • pop

2.3 Vector

2.3.1 Create

  • [ ]
  • vector
  • vec
  • vector-of
  • mapv
  • filterv
  • vector-of

2.3.2 Examine

  • nth
  • get
  • peek

Author: Hebi Li

Created: 2017-06-14 Wed 22:43

Validate