Liking cljdoc? Tell your friends :D

pg.fold

Folders: objects that reduce rows one by one as they come from the network.

Folders: objects that reduce rows one by one
as they come from the network.
raw docstring

columnclj

(column col)

Return a single column of the result.

Return a single column of the result.
sourceraw docstring

columnsclj

(columns cols)

Return certain columns of the result only.

Return certain columns of the result only.
sourceraw docstring

defaultclj

(default)
(default acc!)
(default acc! row)

Collect lazy unparsed rows into a persistent vector.

Collect lazy unparsed rows into a persistent
vector.
sourceraw docstring

dummyclj

(dummy)
(dummy acc)
(dummy acc row)

Skip all the rows and return nil.

Skip all the rows and return nil.
sourceraw docstring

firstclj

(first)
(first acc)
(first acc row)

Return the first row only.

Return the first row only.
sourceraw docstring

group-byclj

(group-by f)

For one-argument function, build a map like {(f row), [row row ...]}.

For one-argument function, build a map like
{(f row), [row row ...]}.
sourceraw docstring

index-byclj

(index-by f)

For one-argument function, build a map like {(f row), row}.

For one-argument function, build a map like
{(f row), row}.
sourceraw docstring

intoclj

(into xform)
(into xform to)

Pass rows throughout an xform like map, filter, or their combination. The to argument is a persistent collection which is used being transient internally. The items are collected using conj!. When to is not set, an empty vector is used.

Pass rows throughout an xform like map, filter, or
their combination. The `to` argument is a persistent
collection which is used being transient internally.
The items are collected using `conj!`. When `to` is
not set, an empty vector is used.
sourceraw docstring

javaclj

(java)
(java acc)
(java acc row)

Produce an ArrayList of HashMaps. Does not require initialization.

Produce an ArrayList of HashMaps. Does not
require initialization.
sourceraw docstring

kvclj

(kv fk fv)

For a pair of one-argument functions, key and value, build a map like {(key row), (value row)}.

For a pair of one-argument functions, key and value,
build a map like {(key row), (value row)}.
sourceraw docstring

mapclj

(map f)

Apply a function to reach row; collect the results into a persistent vector.

Apply a function to reach row; collect
the results into a persistent vector.
sourceraw docstring

reduceclj

(reduce f init)

Reduce the rows using a reducing function of two arguments (an accumulator and the current row) and an initial accumulator value.

Reduce the rows using a reducing function of two
arguments (an accumulator and the current row)
and an initial accumulator value.
sourceraw docstring

runclj

(run f)

Call a function for each row in series skipping the result, presumably with side effects (printing, writing). Return the number of total invocations.

Call a function for each row in series skipping
the result, presumably with side effects (printing,
writing). Return the number of total invocations.
sourceraw docstring

tableclj

(table)

Dump rows into a plain matrix with an extra header row which tracks names of columns.

Dump rows into a plain matrix with an extra header
row which tracks names of columns.
sourceraw docstring

to-ednclj

(to-edn writer)

Dump rows into an EDN writer. Expects an open java.io.Writer instance. Doesn't close it afterwards. Should be used within the with-open macro. Returns a number of rows written.

Dump rows into an EDN writer. Expects an open `java.io.Writer`
instance. Doesn't close it afterwards. Should be used within
the `with-open` macro. Returns a number of rows written.
sourceraw docstring

to-jsonclj

(to-json writer)

Dump rows into a JSON writer. Expects an open java.io.Writer instance. Doesn't close it afterwards. Should be used within the with-open macro. Returns a number of rows written.

Dump rows into a JSON writer. Expects an open `java.io.Writer`
instance. Doesn't close it afterwards. Should be used within
the `with-open` macro. Returns a number of rows written.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close