-
Notifications
You must be signed in to change notification settings - Fork 105
Cheat Sheet
Most of Specter's API consists of an operation, a path and the data to operate on.
Generally usage is like this:
(Operation Path Data)
where
Operation: Query|Transform
Path: Navigator|Vector of Navigators
Data: User-provided data structure to operate on.
Refer to the specific API documentation to check usage.
There are two types of operations: queries and transforms.
select
, select-any
, select-first
, select-one
, select-one!
, selected-any?
, traverse
, traverse-all
transform
, multi-transform
, replace-in
, setval
, vtransform
ALL
, MAP-KEYS
, MAP-VALS
, compact
, keypath
, map-key
, submap
, must
ALL
, ALL-WITH-META
, AFTER-ELEM
, BEFORE-ELEM
, BEGINNING
, END
, FIRST
, INDEXED-VALS
, LAST
before-index
, compact
, continuous-subseqs
, filterer
, index-nav
, nthpath
, srange
, srange-dynamic
ALL
, NONE-ELEM
, compact
, set-elem
, subset
BEGINNING
, END
, FIRST
, LAST
, regex-nav
, srange
NIL->LIST
, NIL->SET
, NIL->VECTOR
, nil->val
, parser
, transformed
, traversed
, view
DISPENSE
, VAL
, collect
, collect-one
, collected?
, putval
, with-fresh-collected
STAY
, STOP
, cond-path
, continue-then-stay
, if-path
, multi-path
, stay-then-continue
, subselect
pred
, pred=
, pred<
, pred>
, pred<=
, pred>=
, not-selected?
, selected?
terminal
, terminal-val
, vterminal
declarepath
, defprotocolpath
, extend-protocolpath
, local-declarepath
, path
, providepath
, recursive-path
, defcollector
, defdynamicnav
, defnav
, eachnav
, nav