Liking cljdoc? Tell your friends :D

clj-string-layout.predicates

Reusable predicates for repeat groups and virtual row layouts.

Predicate functions receive [idx last-idx], where idx is zero-based and last-idx is the last index in the current expansion. Column predicates are used with :repeat-for on [:layout :cols]. Row predicates are used with :apply-for on entries in [:layout :rows].

Reusable predicates for repeat groups and virtual row layouts.

Predicate functions receive [idx last-idx], where idx is zero-based and
last-idx is the last index in the current expansion. Column predicates are
used with :repeat-for on [:layout :cols]. Row predicates are used with
:apply-for on entries in [:layout :rows].
raw docstring

all-cols?clj

Returns true for every data column.

Returns true for every data column.
sourceraw docstring

all-rows?clj

Returns true for every virtual row.

Returns true for every virtual row.
sourceraw docstring

first-col?clj

Returns true for the first data column.

Use with :repeat-for in column layout specs. Receives [idx last-idx] and matches idx 0.

Returns true for the first data column.

Use with :repeat-for in column layout specs. Receives [idx last-idx] and
matches idx 0.
sourceraw docstring

first-row?clj

Returns true for the virtual row before the first data row.

Use with :apply-for in row layout specs. Receives [idx last-idx] and matches idx 0.

Returns true for the virtual row before the first data row.

Use with :apply-for in row layout specs. Receives [idx last-idx] and matches
idx 0.
sourceraw docstring

interior-col?clj

Returns true for data columns that are neither first nor last.

Returns true for data columns that are neither first nor last.
sourceraw docstring

interior-row?clj

Returns true for virtual rows between data rows.

Does not match the first or last virtual row.

Returns true for virtual rows between data rows.

Does not match the first or last virtual row.
sourceraw docstring

last-col?clj

Returns true for the last data column.

Returns true for the last data column.
sourceraw docstring

last-row?clj

Returns true for the virtual row after the last data row.

Use with :apply-for for bottom borders and footers.

Returns true for the virtual row after the last data row.

Use with :apply-for for bottom borders and footers.
sourceraw docstring

not-first-col?clj

Returns true for every data column except the first.

Returns true for every data column except the first.
sourceraw docstring

not-first-row?clj

Returns true for every virtual row except the first.

Use with :apply-for in row layout specs.

Returns true for every virtual row except the first.

Use with :apply-for in row layout specs.
sourceraw docstring

not-interior-col?clj

Returns true for first and last data columns.

Returns true for first and last data columns.
sourceraw docstring

not-interior-row?clj

Returns true for first and last virtual rows.

Useful when the top and bottom borders share a layout.

Returns true for first and last virtual rows.

Useful when the top and bottom borders share a layout.
sourceraw docstring

not-last-col?clj

Returns true for every data column except the last.

Returns true for every data column except the last.
sourceraw docstring

not-last-row?clj

Returns true for every virtual row except the last.

Returns true for every virtual row except the last.
sourceraw docstring

second-col?clj

Returns true for the second data column.

Returns true for the second data column.
sourceraw docstring

second-row?clj

Returns true for the virtual row after the first data row.

This is commonly used for Markdown header separator rows.

Returns true for the virtual row after the first data row.

This is commonly used for Markdown header separator rows.
sourceraw docstring

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