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

Fix 117: Add support for parsing Function w/ and w/o arglist #125

Closed holyjak closed 1 month ago

holyjak commented 1 month ago

Fix 117: Add support for parsing Function w/ and w/o arglist

Issue: Pure functions such as #+1 & were not parsed correctly - namely they were turned into our parse-fn object instead of data, for reasons I don't understand.

Fix: Drop the special case and flags, and parse it as any other data. Extend w/fn to support no-args version, for use with the anonymous args such as (Slot 1). (I couldn't think of a better way.) Add tests.