Fork me on GitHub
#clj-kondo
<
2023-12-01
>
valerauko10:12:47

In a clj-kondo hook, how do I turn

([a b]
 (* a b))
into
(fn [a b]
 (* a b))
?

borkdude10:12:24

in an analyze-call hook or macroexpand hook?

borkdude10:12:12

in the first:

(update node :children (fn [children]
  (cons (api/token-node 'clojure.core/fn) children))

valerauko10:12:07

Thanks, let me try

valerauko13:12:09

Thanks, that did it!

👍 1