Operators for pattern matrices.
Operators for pattern matrices.
(add-var row var)
Add var to the environment in row.
Add var to the environment in row.
(add-vars row vars)
Add vars to the environment in row.
Add vars to the environment in row.
(any-column? matrix index)
true
if every cell in the nth-column index
of matrix
is an
any-node?
, false
otherwise.
`true` if every cell in the nth-column `index` of `matrix` is an `any-node?`, `false` otherwise.
(any-row? row)
true
if every column in row
is an any-node?
, false
otherwise.
`true` if every column in `row` is an `any-node?`, `false` otherwise.
(bound-lvrs row)
Return the set of currently bound logic variables in row.
Return the set of currently bound logic variables in row.
(bound-mvrs row)
Return the set of currently bound memory variables in row.
Return the set of currently bound memory variables in row.
(drop-column matrix)
Drop the first column in row.
Drop the first column in row.
(empty? matrix)
true if matrix has no columns.
true if matrix has no columns.
(first-column matrix)
Return the first column in matrix.
Return the first column in matrix.
(get-var row var)
Get var from the environment in row.
Get var from the environment in row.
(make-row nodes action-form)
Given a sequence of nodes
and some form action-form
, return a
matrix row.
Given a sequence of `nodes` and some form `action-form`, return a matrix row.
(prepend-cells row cells)
Prepends cells
to row
.
Prepends `cells` to `row`.
(prepend-column matrix column)
Prepends column to matrix.
Prepends column to matrix.
(specialize-by f matrix)
Split matrix into submatrices by the return result of applying f to the first column of each row in matrix.
Split matrix into submatrices by the return result of applying f to the first column of each row in matrix.
(subcols matrix i)
(subcols matrix i j)
Return matrix with only the columns after i or i through j.
Return matrix with only the columns after i or i through j.
(swap v i j)
Swap elements at positions i and j in the vector v.
Swap elements at positions i and j in the vector v.
(swap-column matrix i j)
Swaps column i with column j in the matrix.
Swaps column i with column j in the matrix.
(unbound-mvrs row node)
Return the set of unbound memory variables in node with respect to row.
Return the set of unbound memory variables in node with respect to row.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close