Liking cljdoc? Tell your friends :D

beichte.registry

Immutable effect registry for known vars, classes, and methods.

The registry is a persistent map from entries to effect levels. Entries can be:

  • Vars: #'clojure.core/+
  • Class strings: "java.lang.Math"
  • Method pairs: ["java.lang.Math" 'sin]

The default registry pre-annotates clojure.core and common Java classes. Users create extended registries via with-entries.

Immutable effect registry for known vars, classes, and methods.

The registry is a persistent map from entries to effect levels.
Entries can be:
  - Vars:           #'clojure.core/+
  - Class strings:  "java.lang.Math"
  - Method pairs:   ["java.lang.Math" 'sin]

The default registry pre-annotates clojure.core and common Java
classes. Users create extended registries via `with-entries`.
raw docstring

default-registryclj

(default-registry)

Create the default registry with pre-annotated clojure.core and Java entries.

Create the default registry with pre-annotated clojure.core and Java entries.
sourceraw docstring

lookupclj

(lookup registry entry)

Look up an entry's effect level. Returns nil if unknown.

Look up an entry's effect level. Returns nil if unknown.
sourceraw docstring

make-registryclj

(make-registry entries)

Create a registry from a map of {entry -> effect-level}. Validates all effect levels.

Create a registry from a map of {entry -> effect-level}.
Validates all effect levels.
sourceraw docstring

with-entriesclj

(with-entries registry entries)

Extend a registry with additional entries. Later entries override.

Extend a registry with additional entries. Later entries override.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close