Skip to main content

fn-node

function

rewrite-clj.node/fn-node

(fn-node [children])
Create node representing an anonymous function with `children`. ```Clojure (require '[rewrite-clj.node :as n]) (-> (n/fn-node [(n/token-node '+) (n/spaces 1) (n/token-node 1) (n/spaces 1) (n/token-node '%1)]) n/string) ;; => "#(+ 1 %1)" ```

No examples yet. Be the first to add one!