Symbolic identifiers and related protocols.

Keyword

Available since version 1.0 (view source)

TYPE

A type for keyword symbolic identifiers.

See also: keyword?, keyword

Symbol

Available since version 1.0 (view source)

TYPE

A type for symbols, symbolic identifiers.

See also: symbol?, symbol

keyword

Available since version 1.0 (view source)

Usage:
  • (keyword x)

  • (keyword ns name)

Type signatures:
  • (INamed) → Keyword

  • ((Maybe String+) ⨯ String+) → Keyword

Returns a keyword from x, where x can be any named object. Two arg version accepts name string and an optional namespace string ns.

See also: keyword?

keyword?

Available since version 1.0 (view source)

Usage:
  • (keyword? x)

Type signature: Predicate

Returns true if object x is an instance of Keyword type, false otherwise.

See also: Keyword, keyword

name

Available since version 1.0 (view source)

Usage:
  • (name x)

Type signature:
  • (INamed) → String+

Returns the name string of object x.

See also: named?, namespace

named?

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (named? x)

Type signature: Predicate

Returns true if object x satisfies INamed protocol, false otherwise.

See also: INamed, name, INamespaced

namespace

Available since version 1.0 (view source)

Usage:
  • (namespace x)

Type signature:
  • (INamespaced) → (Maybe String+)

Returns the name string of object x or nil if namespace is not set.

See also: namespaced?, name

namespaced?

Available since version 1.0 (view source)

not referred automatically

Usage:
  • (namespaced? x)

Type signature: Predicate

Returns true if object x satisfies INamespaced protocol, false otherwise.

special?

Available since version 1.0 (alias of clojure.core/special-symbol?)

not referred automatically

Usage:
  • (special? s)

Type signature:
  • (Symbol) → Boolean+

Returns true if symbol s names a special form, false otherwise.

See also: symbol?

symbol

Available since version 1.0 (view source)

Usage:
  • (symbol x)

  • (symbol ns name)

Type signatures:
  • (INamed) → Symbol

  • ((Maybe String+) ⨯ String+) → Symbol

Returns a symbol from x, where x can be any named object. Two arg version accepts name string and an optional namespace string ns.

See also: symbol?

symbol?

Available since version 1.0 (view source)

Usage:
  • (symbol? x)

Type signature: Predicate

Returns true if object x is an instance of Symbol type, false otherwise.

See also: Symbol, symbol