• (fn-seq form)
Converts a form into a sequence of functions.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source net/licenser/sandbox/tester.clj:17 top

(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)))))
Vars in net.licenser.sandbox.tester/fn-seq: = defn filter fn map nil? partial remove resolve some symbol?
Used in 0 other vars

Comments top

No comments for fn-seq. Log in to add a comment.