scicloj / wolframite

An interface between Clojure and Wolfram Language (the language of Mathematica)
https://scicloj.github.io/wolframite/
Mozilla Public License 2.0
56 stars 2 forks source link

Consider exposing intern/wolfram-fn in the public API #129

Open holyjak opened 1 month ago

holyjak commented 1 month ago

While wolframite.impl.wolfram-syms.intern/wolfram-fn is primarily an internal function, it can be useful, f.ex. to create wrapper vars for symbols that are not in wolframite.wolfram, such as this case:

(def StringToMReal (wolframite.impl.wolfram-syms.intern/wolfram-fn 'Internal/StringToMReal))
(wl/eval (StringToMReal "12.34"))
;; => 12.34

It doesn't seem to belong to the core ns itself. Perhaps wolframite.utils or some such?!

TODO: If we do this, then update the demo_analysis_cycling.clj using it.