One replaceable function the host app installs, called at the edge. The slot and the rule for filling it live here. What calling the hook means belongs to whoever owns the slot, and that is the whole of the difference between the two that exist.
One replaceable function the host app installs, called at the edge. The slot and the rule for filling it live here. What calling the hook means belongs to whoever owns the slot, and that is the whole of the difference between the two that exist.
(install! slot kind f)Put f in slot, the atom holding the page's one hook of kind. Nil clears it, and what is not
callable is refused here rather than failing at every call site later.
Put `f` in `slot`, the atom holding the page's one hook of `kind`. Nil clears it, and what is not callable is refused here rather than failing at every call site later.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |