Liking cljdoc? Tell your friends :D
Clojure only.

nl.jomco.openapi.v3.util

Internal utility functions for implementing OpenAPI and JSON-Schema handling.

Internal utility functions for implementing OpenAPI and JSON-Schema
handling.
raw docstring

cached-at!cljmacro

(cached-at! cache-atom path & body)

Return item at path in cache-atom, creating it if necessary.

If there is no item at path, evaluates body to create it.

Return item at `path` in `cache-atom`, creating it if necessary.

If there is no item at `path`, evaluates `body` to create it.
raw docstring

delayedfncljmacro

(delayedfn & body)

Define a function that will be evaluated at first use.

The body expression is wrapped in a delay and should evaluate to a function.

When the delayed function is called for the first time, body is evaluated and the result is cached, and then called with the provided arguments.

Subsequent calls will re-use the cached body function.

This differs from memoize since it caches the function implementation, instead of its return value.

Define a function that will be evaluated at first use.

The `body` expression is wrapped in a delay and should evaluate to a
function.

When the delayed function is called for the first time, `body` is
evaluated and the result is cached, and then called with the
provided arguments.

Subsequent calls will re-use the cached body function.

This differs from `memoize` since it caches the function
implementation, instead of its return value.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close