Hi,
Is it possible to add a function as a parameter to the catalog?
For example, I have a filter function where I need to pass an external function as a parameter that can be used within the function defined as :onyx/type :function.
Sample function-
(defn filter-word [ffn segment]
(filter #(ffn (:count %)) (vector segment)))
where catalog has an entry-
{:onyx/name :odd
:onyx/fn :play.onyx.play-wordcount/filter-word
:onyx/type :function
:parameterized.core/ffn odd?
:onyx/params [:parameterized.core/ffn]
:onyx/batch-size 10}
Thanks,
Anuj