Pull from data structure by using pattern.
Pull from data structure by using pattern.
(pull data ptn)
Combined query
and run
in one step.
Combined `query` and `run` in one step.
(query pattern)
Returns a query from pattern
and global-options
map. A query can be used to
pull from data structure later.
A pattern is recursive data structure, consists of:
Returns a query from `pattern` and `global-options` map. A query can be used to pull from data structure later. ### Pattern A pattern is recursive data structure, consists of: - Simple value pattern, just be used as a key of a lookup data structure, such as map keys, vector index, etc. - Vector pattern, returns the combination of its elements. - Join pattern, aka map, its keys are patterns, and will be ran first, then the values (also are patterns) will be run in the context of the key result data structure. - List pattern, first element is a pattern, the rest are options, must be in pairs.
(run data q)
Given data
, run a query returned by query
and returns the pull result.
Given `data`, run a query returned by `query` and returns the pull result.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close