Liking cljdoc? Tell your friends :D

co.multiply.pathling.accumulator

Mutable accumulator utilities for efficient collection building. Uses ArrayList on CLJ, JS array on CLJS.

Mutable accumulator utilities for efficient collection building.
Uses ArrayList on CLJ, JS array on CLJS.
raw docstring

acc-append!clj/smacro

(acc-append! acc v)

Append a single value to the accumulator. Mutates in place, returns the accumulator.

Append a single value to the accumulator. Mutates in place, returns the accumulator.
sourceraw docstring

acc-append-many!clj/smacro

(acc-append-many! acc many)

Append all elements from a sequential collection to the accumulator. Mutates in place, returns the accumulator.

Append all elements from a sequential collection to the accumulator.
Mutates in place, returns the accumulator.
sourceraw docstring

acc-getclj/smacro

(acc-get acc idx)

Get element at index position from the accumulator.

Get element at index position from the accumulator.
sourceraw docstring

acc-init-append!clj/smacro

(acc-init-append! acc v)

Append a value to the accumulator, lazily initializing if nil. Returns the (possibly new) accumulator.

Append a value to the accumulator, lazily initializing if nil.
Returns the (possibly new) accumulator.
sourceraw docstring

acc-set!clj/smacro

(acc-set! acc idx v)

Set element at index position in the accumulator. Returns the value.

Set element at index position in the accumulator. Returns the value.
sourceraw docstring

acc-sizeclj/smacro

(acc-size acc)

Return the number of elements in the accumulator.

Return the number of elements in the accumulator.
sourceraw docstring

accumulatorclj/smacro

(accumulator)
(accumulator initial-size)

Create a new mutable accumulator. Optionally accepts an initial-size for preallocation when final size is known. In ClojureScript, returns a raw JS array (preallocation hint is ignored).

Create a new mutable accumulator.
Optionally accepts an initial-size for preallocation when final size is known.
In ClojureScript, returns a raw JS array (preallocation hint is ignored).
sourceraw docstring

accumulator->listclj/s

(accumulator->list acc)

Convert an accumulator to a list.

Convert an accumulator to a list.
sourceraw docstring

accumulator->vecclj/s

(accumulator->vec acc)

Convert an accumulator to a persistent vector.

Convert an accumulator to a persistent vector.
sourceraw docstring

arr-push!cljs

(arr-push! arr v)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close