Liking cljdoc? Tell your friends :D

cljmd.blockrun


addcljmultimethod

Binary operation on blockruns. Serves to compose blockruns.

Binary operation on blockruns. Serves to compose blockruns.
sourceraw docstring

add-dfclj

(add-df)
(add-df x)
(add-df x y)

Dispatch function for blockrun/add.

Dispatch function for blockrun/add.
sourceraw docstring

coalesceclj

(coalesce pred blockrun)

Tests blockrun entries in pairs and concatenates those for which all of the following apply:

  1. are adjacent
  2. bear the same tag
  3. (pred t) returns logical true, where t is the tag of the entries
Tests blockrun entries in pairs and concatenates those for which all of the
following apply:
 1. are adjacent
 2. bear the same tag
 3. (pred t) returns logical true, where t is the tag of the entries
sourceraw docstring

(extract-link-reference-definitions blockrun)

Searches blockrun for link reference definitions and extracts them into separate entries. Each definition is awarded its own entry. The new entries are tagged :adef. The entries which the definitions came from are split and each of the parts bears the tag of its originator.

Searches blockrun for link reference definitions and extracts them into
separate entries. Each definition is awarded its own entry. The new entries
are tagged :adef. The entries which the definitions came from are split and
each of the parts bears the tag of its originator.
sourceraw docstring

extract-trailing-blanksclj

(extract-trailing-blanks blockrun)

Breaks blank lines off from the tail end of :li entries into a separate :blank entity.

Breaks blank lines off from the tail end of :li entries into a separate
:blank entity.
sourceraw docstring

from-lineclj

(from-line line)

Returns a blockrun containing a single tagged line.

Returns a blockrun containing a single tagged line.
sourceraw docstring

from-stringclj

(from-string string)

Parses the given input into a list of blockrun entries. Each of these entries represents a top-level block.

Parses the given input into a list of blockrun entries. Each of these entries
represents a top-level block.
sourceraw docstring

fuseclj

(fuse x y direction)

Concatenates blockruns x and y with the exception of their adjoining entries. The latter are merged into a single entry, according to direction.

  • if direction equals :rtol y-side lines are appended to x-side lines under the x-side tag
  • if direction equals :ltor x-side lines are appended to y-side lines under the y-side tag
Concatenates blockruns x and y with the exception of their adjoining entries.
The latter are merged into a single entry, according to direction.
  * if direction equals :rtol
    y-side lines are appended to x-side lines under the x-side tag
  * if direction equals :ltor
    x-side lines are appended to y-side lines under the y-side tag
sourceraw docstring

fuse-leftclj

(fuse-left x y)

Same as (fuse x y :rtol)

Same as (fuse x y :rtol)
sourceraw docstring

fuse-rightclj

(fuse-right x y)

Same as (fuse x y :ltor)

Same as (fuse x y :ltor)
sourceraw docstring

fuse-splitclj

(fuse-split x y n)

Removes the first n lines of the first entry of y, appends them to the last entry of x, recalculates the remainder of y and concatenates the results.

Removes the first n lines of the first entry of y, appends them to the last
entry of x, recalculates the remainder of y and concatenates the results.
sourceraw docstring

merge-indented-chunksclj

(merge-indented-chunks blockrun)

Merges entries of indented code which are separated by blanks.

Merges entries of indented code which are separated by blanks.
sourceraw docstring

postprocessclj

(postprocess blockrun)

Hook for performing transformations after the blockrun has been compiled.

Hook for performing transformations after the blockrun has been compiled.
sourceraw docstring

retagclj

(retag blockrun position tag)

Returns the blockrun with either its first or its last entry retagged to tag. The entry to be affected is specified by position and may be either :first or :last.

Returns the blockrun with either its first or its last entry retagged to tag.
The entry to be affected is specified by position and may be either :first or
:last.
sourceraw docstring

shiftclj

(shift n blockrun)

Recalculates blockrun after removing the first n lines of the first entry.

Recalculates blockrun after removing the first n lines of the first entry.
sourceraw docstring

tokenizeclj

(tokenize string)
source

zeroclj

Identity element of the add binary operation.

Identity element of the add binary operation.
sourceraw docstring

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

× close