Liking cljdoc? Tell your friends :D
Clojure only.

robertluo.pullable

Pull from data structure by using pattern.

Pull from data structure by using pattern.
raw docstring

pullclj

(pull data ptn)

Combined query and run in one step.

Combined `query` and `run` in one step.
raw docstring

queryclj

(query pattern)

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.
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.
raw docstring

runclj

(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.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close