call a clojurescript function by string name -


I'm searching for a string name to find a way to call the function given in the Closer script.

Like something:

  (call "fun" args)  

Any help you are welcome

A very quick solution that should work:

  (ns eval.core ( : (As in [clojure.string: str])) (defn -> js [var-name] (- & gt; var-name (str / replace # "/" ".") (Str / replace # "-" "_"))) (defn invoke [function-name & amp;] (let's [fun (js / eval (-> js function-name)) (apply fun arguments)) ;;; ;;;;;;;;;;;;;;; 07 ;;;;;;;;;;;;;;;;; f ;;;;;;;;;;;;;;;;asis; ;;;;;;;;;;asis; ;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;41 ;;;;;;;;;;;;;;;asis ;;;;;;;;;;;;asis ;;;;;;;;41; Uses: (Ns n The ante (call: [eval.core: as E] is required) (defn ^: export my-fn [arg1 arg2];; export note! (Println arg1 arg2) arg2) (e / call "example.core / My-fn "5 6);> & gt; 5 6  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -