(let [args {:x 1, :y 2} fms {:add (fm [:x :y] (+ x y))} tf (treefm fms :add)] (tf args))
(let [args {:x 1, :y 2}
fms {:add (fm [:x :y]
(+ x y))}
tf (treefm fms :add)]
(tf args))* 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
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |