Immutable Clojure views of detached typed values. Descriptors describe values; only the Java typed-storage boundary validates and admits storage.
Immutable Clojure views of detached typed values. Descriptors describe values; only the Java typed-storage boundary validates and admits storage.
(backing-type value)(backing-value value)(collection-equal left right)(collection-equal left right equiv?)Stack-safe Clojure collection equivalence, including ordinary collections.
Stack-safe Clojure collection equivalence, including ordinary collections.
(collection-hash value)(collection-hash value hasheq?)Iterative ordinary Clojure hasheq (or Java collection hashCode).
Iterative ordinary Clojure hasheq (or Java collection hashCode).
(host-value type value)Convert ordinary Clojure input under a detached closed type. Genuine views unwrap before traversal, preserving certified storage. LeanType.create remains the authority for construction, type/range validation and storage admission.
Convert ordinary Clojure input under a detached closed type. Genuine views unwrap before traversal, preserving certified storage. LeanType.create remains the authority for construction, type/range validation and storage admission.
(materialize value)Explicitly copy a view into ordinary Clojure maps/vectors. LeanBytes becomes a fresh byte array; Unit remains nil and Option Unit remains {:some nil}.
Explicitly copy a view into ordinary Clojure maps/vectors. LeanBytes becomes
a fresh byte array; Unit remains nil and Option Unit remains {:some nil}.(unwrap value)Return a genuine view's original detached Java carrier; leave other values alone.
Return a genuine view's original detached Java carrier; leave other values alone.
(view type value)Expose a detached Java value under its closed type without copying its payload.
Expose a detached Java value under its closed type without copying its payload.
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 |