(defn fn-seq
"Converts a form into a sequence of functions."
[form]
(remove nil? (map (fn [s]
(if (some (partial = s) '(fn* let* def loop* recur new .))
s
(try
(resolve s)
(catch Exception e s))))
(filter symbol? (s-seq form)))))
Comments top
No comments for fn-seq. Log in to add a comment.