This is the cl-naive-ptrees Reference Manual, version 2021.6.25, generated automatically by Declt version 4.0 beta 2 "William Riker" on Sun Dec 15 05:11:37 2024 GMT+0.
The main system appears first, followed by any subsystem dependency.
cl-naive-ptrees
Functions to make it easier to work with plist(s) and plist trees. Works with plist(s) pairs as units and not as individual list items.
Phil Marneweck <phil@psychedelic.co.za>
MIT
2021.6.25
src/package.lisp
(file).
src/naive-ptrees.lisp
(file).
Files are sorted by type and then listed depth-first from the systems components trees.
cl-naive-ptrees/cl-naive-ptrees.asd
cl-naive-ptrees/src/package.lisp
cl-naive-ptrees/src/naive-ptrees.lisp
cl-naive-ptrees/cl-naive-ptrees.asd
cl-naive-ptrees
(system).
cl-naive-ptrees/src/naive-ptrees.lisp
src/package.lisp
(file).
cl-naive-ptrees
(system).
append-attribute
(function).
append-attribute-value
(function).
criteria
(type).
criteriap
(function).
indicator
(type).
indicator-absent-error
(condition).
indicator-absent-indicator
(reader method).
indicator-absent-plist
(reader method).
indicatorp
(function).
map-attributes
(function).
map-criteria
(function).
map-plists
(function).
path
(type).
pathp
(function).
plist
(type).
plist-to-attributes
(function).
plist-to-keys
(function).
plist-to-values
(function).
plistp
(function).
proper-list
(type).
proper-list-p
(function).
query
(function).
remove-attribute
(function).
traverse-attributes
(function).
traverse-criteria
(function).
traverse-plists
(function).
update-attribute
(function).
walk-to-node
(function).
&
(macro).
*parse-criteria-cache*
(special variable).
appendf
(macro).
attribute-equal-p
(generic function).
deref
(function).
(setf deref)
(function).
extract
(function).
parse-criteria
(function).
query-places
(function).
traverse-plist-places
(function).
Packages are listed by definition order.
cl-naive-ptrees
common-lisp
.
append-attribute
(function).
append-attribute-value
(function).
criteria
(type).
criteriap
(function).
indicator
(type).
indicator-absent-error
(condition).
indicator-absent-indicator
(generic reader).
indicator-absent-plist
(generic reader).
indicatorp
(function).
map-attributes
(function).
map-criteria
(function).
map-plists
(function).
path
(type).
pathp
(function).
plist
(type).
plist-to-attributes
(function).
plist-to-keys
(function).
plist-to-values
(function).
plistp
(function).
proper-list
(type).
proper-list-p
(function).
query
(function).
remove-attribute
(function).
traverse-attributes
(function).
traverse-criteria
(function).
traverse-plists
(function).
update-attribute
(function).
walk-to-node
(function).
&
(macro).
*parse-criteria-cache*
(special variable).
appendf
(macro).
attribute-equal-p
(generic function).
deref
(function).
(setf deref)
(function).
extract
(function).
parse-criteria
(function).
query-places
(function).
traverse-plist-places
(function).
Definitions are sorted by export status, category, package, and then by lexicographic order.
Selects plists in PLIST-TREE matching the criteria.
If NTH is given, then only the NTH plist is modified,
otherwise only the plists between START and END are modified.
Appends an attribute to selected plists.
Selects plists in PLIST-TREE matching the criteria.
If NTH is given, then only the NTH plist is modified,
otherwise only the plists between START and END are modified.
The VALUE is appended to the value of the attribute indicated by INDICATOR.
Traverses the plist tree and calls the attribute-func for each attribute pair and uses the values returned from the attribute-func to build a new plist-tree.
Traverses the plist-tree and calls the attribute-func for each attribute pair in plists that matches the criteria and uses the values returned from the attribute-func to build a new plist-tree. Pairs that are not affected by attribute-func are used as they are to build the new/changed tree.
Walk the PLIST-TREE, and call PLIST-FUN on each plist in the tree, building a similar tree with the results of PLIST-FUN.
Returns a list of key value pair lists of a plist.
Returns the keys of a plist as a list.
Returns the values of a plist as a list.
Return whether OBJECT is a proper list.
NOTE: terminates with any kind of list, dotted, or circular.
Return a list of plists or values in the PLIST-TREE that match the CRITERIA.
Selects plists in PLIST-TREE matching the criteria.
If NTH is given, then only the NTH plist is modified,
otherwise only the plists between START and END are modified.
Removes the attribute from the selected plists.
Traverses the plist-tree and calls the attribute-func for each attribute pair.
Traverses the plist-tree and calls the attribute-func for each attribute pair that matches the criteria supplied. The criteria selects plists in the plist-tree. The ATTRIBUTE-FUNC is called one each attribute of each selected plist.
Note: all the attribute in the criteria are matched into a single plist, to select it.
An item in the criteria can be specific like (:att "x") which will match all attribute with name = :att and value = "x".
Or the item in the criteria can be non specific (:att) which will match all attributes with then name :att.
Specific and non specific criteria elements can be mixed like ((:att "x") (:other-att))
Walk the PLIST-TREE, and call PLIST-FUN on each plist in the tree. Return the plist-tree.
Selects plists in PLIST-TREE matching the criteria.
If NTH is given, then only the NTH plist is modified,
otherwise only the plists between START and END are modified.
Changes the value of attribute for attributes matched by criteria.
indicator-absent-error
)) ¶indicator-absent-error
)) ¶Return a list of plists or values in the PLIST-TREE that match the CRITERIA.
Note: If CRITERIA is a CHAIN, then it’s equivalent to:
(query-places (query plist-tree (butlast criteria))
(first (last criteria)))
Walk the PLIST-TREE, and call PLIST-FUN with the place of each plist in the tree. Return the plist-tree.
number
) (b number
)) ¶cons
) (b cons
)) ¶string
) (b string
)) ¶vector
) (b vector
)) ¶array
) (b array
)) ¶Jump to: | &
(
A C D E F G I M P Q R T U W |
---|
Jump to: | &
(
A C D E F G I M P Q R T U W |
---|
Jump to: | *
I P S |
---|
Jump to: | *
I P S |
---|
Jump to: | C F I P S T |
---|
Jump to: | C F I P S T |
---|