(array-kv-reduce ral read-from-cursor f init)
Efficiently reduces over index-value pairs in a ReadArrayList.
Efficiently reduces over index-value pairs in a ReadArrayList.
(array-list-append-value! wal v)
Appends a value to a WriteArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
Appends a value to a WriteArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
(array-list-assoc-value! wal i v)
Associates a value at index i in a WriteArrayList. Appends the value if the index equals the current count. Replaces the value at the specified index otherwise. Throws an IllegalArgumentException if the index is out of bounds.
Associates a value at index i in a WriteArrayList. Appends the value if the index equals the current count. Replaces the value at the specified index otherwise. Throws an IllegalArgumentException if the index is out of bounds.
(array-list-empty! wal)
Empties a WriteArrayList by replacing its contents with an empty array. Returns the modified WriteArrayList.
Empties a WriteArrayList by replacing its contents with an empty array. Returns the modified WriteArrayList.
(array-list-pop! wal)
Removes the last element from a WriteArrayList. Throws IllegalStateException if the array is empty. Returns the array list with the last element removed.
Removes the last element from a WriteArrayList. Throws IllegalStateException if the array is empty. Returns the array list with the last element removed.
(array-seq ral read-from-cursor)
Creates a lazy sequence from a ReadArrayList. Uses the provided read-from-cursor function to convert cursors to values. Returns a lazy sequence of the array elements.
Creates a lazy sequence from a ReadArrayList. Uses the provided read-from-cursor function to convert cursors to values. Returns a lazy sequence of the array elements.
(linked-array-list-append-value! wlal v)
Appends a value to a WriteLinkedArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
Appends a value to a WriteLinkedArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
(linked-array-list-insert-value! wlal pos v)
Inserts a value at position pos in a WriteLinkedArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
Inserts a value at position pos in a WriteLinkedArrayList. Converts the value to an appropriate XitDB representation using v->slot!.
(linked-array-list-pop! wlal)
Removes the first element from a WriteLinkedArrayList. This is a stack-like operation (LIFO) for linked lists. Returns the modified WriteLinkedArrayList.
Removes the first element from a WriteLinkedArrayList. This is a stack-like operation (LIFO) for linked lists. Returns the modified WriteLinkedArrayList.
(linked-array-seq rlal read-from-cursor)
Creates a lazy sequence from a ReadLinkedArrayList. Uses the provided read-from-cursor function to convert cursors to values. Returns a lazy sequence of the linked array elements.
Creates a lazy sequence from a ReadLinkedArrayList. Uses the provided read-from-cursor function to convert cursors to values. Returns a lazy sequence of the linked array elements.
(map-assoc-value! whm k v)
Associates a key-value pair in a WriteHashMap.
Args: whm - The WriteHashMap to modify k - The key to associate (converted to XitDB representation) v - The value to associate (converted to XitDB representation)
Returns the modified WriteHashMap.
Throws IllegalArgumentException if attempting to associate an internal key. Updates the internal count if fast counting is enabled.
Associates a key-value pair in a WriteHashMap. Args: whm - The WriteHashMap to modify k - The key to associate (converted to XitDB representation) v - The value to associate (converted to XitDB representation) Returns the modified WriteHashMap. Throws IllegalArgumentException if attempting to associate an internal key. Updates the internal count if fast counting is enabled.
(map-contains-key? whm key)
Checks if a WriteHashMap contains the specified key. Returns true if the key exists, false otherwise.
Checks if a WriteHashMap contains the specified key. Returns true if the key exists, false otherwise.
(map-dissoc-key! whm k)
Removes a key-value pair from a WriteHashMap. Throws IllegalArgumentException if attempting to remove an internal key. Updates the internal count if fast counting is enabled.
Removes a key-value pair from a WriteHashMap. Throws IllegalArgumentException if attempting to remove an internal key. Updates the internal count if fast counting is enabled.
(map-empty! whm)
Empties a WriteHashMap by replacing its contents with an empty map. Returns the modified WriteHashMap.
Empties a WriteHashMap by replacing its contents with an empty map. Returns the modified WriteHashMap.
(map-item-count rhm)
Returns the number of key/vals in the map.
Returns the number of key/vals in the map.
(map-item-count-iterated rhm)
Returns the number of keys in the map by iterating. The count includes internal keys if any.
Returns the number of keys in the map by iterating. The count includes internal keys if any.
(map-kv-reduce rhm read-from-cursor f init)
Efficiently reduces over key-value pairs in a ReadHashMap, skipping hidden keys.
Efficiently reduces over key-value pairs in a ReadHashMap, skipping hidden keys.
(map-read-cursor rhm key)
Gets a read cursor for the specified key in a ReadHashMap. Returns the cursor if the key exists, nil otherwise.
Gets a read cursor for the specified key in a ReadHashMap. Returns the cursor if the key exists, nil otherwise.
(map-seq rhm read-from-cursor)
Return a lazy seq of key-value MapEntry pairs.
Return a lazy seq of key-value MapEntry pairs.
(map-write-cursor whm key)
Gets a write cursor for the specified key in a WriteHashMap. Creates the key if it doesn't exist.
Gets a write cursor for the specified key in a WriteHashMap. Creates the key if it doesn't exist.
(set-assoc-value! whs v)
Adds a value to a set.
Adds a value to a set.
(set-contains? rhs v)
Returns true if v
is in the set.
Returns true if `v` is in the set.
(set-disj-value! whs v)
Removes a value from a set
Removes a value from a set
(set-empty! whs)
Replaces the whs value with an empty set.
Replaces the whs value with an empty set.
(set-item-count rhs)
Returns the number of values in the set.
Returns the number of values in the set.
(set-seq rhm read-from-cursor)
Return a lazy seq values from the set.
Return a lazy seq values from the set.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close