Lasertag: Clojure(Script) utility for discerning types of values.
2024-10-16
If tag of coll is :seq, and coll is a list such as
clojure.lang.PersistentList, then :list is added to the :all-tags entry in
the return value from tag-map.
If coll is an array-map, :array-map is added to the :all-tags entry in the
return value from tag-map:
(tag-map (array-map {"one" 1 "two" 2 "three" 3}))
=>
{:tag :map
:type clojure.lang/PersistentArrayMap[]
:carries-meta? true
:all-tags #{:coll :array-map :map}
:coll-type? true
:map-like? true
:number-type? false
:coll-size 9}
2024-07-06
Atomics (js/Atomics), in case device does not support it.js/Atomics.2024-06-23
tag-map return valuecljs.core/Cons and clojure.lang.Cons with :seqseq? will get tagged with :seq. No colls will get tagged with :list.2024-03-16
2024-02-27
java.util.Collection get a :coll tag in :all-tags entry of result of typetag.core/tag-mapPersistentTreeSet -> :set:all-typetags -> :all-tagsv1.11.0 -> v1.9.02024-02-13
js/ArrayBufferjs/Intl.*js/TypedArray:map-like? entry to result of typetag.core/tag-map#uuid and #inst2023-11-17
Can you improve this documentation?Edit on GitHub
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 |