* Motivation - treefn's are flexible, easy to manipulate, composable, and reusable, however, are cumbersome to create/call for common tasks - there is a need to make it easier to create/call treefn's that are commonly used - The "point" model attempts to solve this problem by providing a reference "point" that is easy to use/call * Model - Points are simply an encapsulation of an output key (:target), treefn map (:treefns), and default input map (:inputs) - Any existing point can be modified to provide the exact same functionality of another point
(compile point)
(compile point1 & points)
creates a fn that wraps a treefn from a point, and merges its current input with the point's input map, returns the target
A point is a map containing keys :target, :treefns, and :inputs
creates a fn that wraps a treefn from a point, and merges its current input with the point's input map, returns the target A point is a map containing keys :target, :treefns, and :inputs
(debug point)
(debug point1 & points)
create and call a treefn from a point and returns the full output map
A point is a map containing keys :target, :treefns, and :inputs
create and call a treefn from a point and returns the full output map A point is a map containing keys :target, :treefns, and :inputs
(merge point1 & points)
merge's the contents of two points, with precedence for the later (left-to-right)
merge's the contents of two points, with precedence for the later (left-to-right)
(one-shot point)
(one-shot point1 & points)
create and call a treefn from a point and return the target
A point is a map containing keys :target, :treefns, and :inputs
create and call a treefn from a point and return the target A point is a map containing keys :target, :treefns, and :inputs
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close