(buffer-current-position buffer)
Returns the current position of the buffer.
Returns the current position of the buffer.
(buffer-reset! buffer)
Rewinds the buffer to the beginning.
Rewinds the buffer to the beginning.
(buffer-rest! buffer)
Returns a vector whit the remaining elements.
Returns a vector whit the remaining elements.
(buffer-set-position! buffer new-position)
Sets the current position of the buffer.
Sets the current position of the buffer.
(buffer-take! buffer n)
Returns a vector of n elements from the current position on.
Returns a vector of n elements from the current position on.
(buffer-take-upto! buffer pred)
Returns a vector of n elements while pred is true including the first false.
Returns a vector of n elements while pred is true including the first false.
(buffer-take-while! buffer pred)
Returns a vector of n elements while pred is true.
Returns a vector of n elements while pred is true.
(to-buffer data)
Transform a sequence into a rewindable buffer.
Transform a sequence into a rewindable buffer.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close