cljs.spec.alpha/fn-sym

functionremoved v1.10.514added v1.10.439Edit
(fn-sym f-n)

Source code @ clojurescript:src/main/cljs/cljs/spec/alpha.cljs
(defn fn-sym [f-n]
  (when-not (str/blank? f-n)
    (let [xs (map demunge (str/split f-n "$"))]
      (when (c/and (<= 2 (count xs))
                   (every? #(not (str/blank? %)) xs))
        (let [[xs y] ((juxt butlast last) xs)]
          (symbol (str (str/join "." xs) "/" y)))))))