Added support for the :transformer node#6
Conversation
… for the :condition-model properties.
80442e4 to
f2322e9
Compare
|
@borkdude Here is an example of how it works: (m/describe (h/transform (h/vector-of (h/fn int?))
(h/repeat 2 3 (h/fn odd?))
(fn [out-data] (map inc out-data))
(fn [in-data] (mapv #(* % 10) in-data)))
[2 4 6])
;=> [30 50 70] |
|
I'm getting |
|
I tried the example again, it works on my computer.
Strange, it works on my computer. Did you use the second commit that I added yesterday?
That's a good idea.
The transform node is a bridge between 2 models. I named them In practice, the outer model is used mainly to ensure a valid data format before calling I might iterate again on this PR and change the format of the node to cover a more general way to bridge. |
09a2065 to
7dbf0a1
Compare
Fixes issue #5