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

->clj fails for some Wolfram lambdas #117

Closed holyjak closed 1 month ago

holyjak commented 2 months ago

Examples:

ImageContainsQ[#, Entity["Concept", "CanisFamiliaris::597qc"]] & /@ images
(*
=> (Map
 #object[wolframite.base.parse$parse_fn$fn__4256 0x3c2fae83 "wolframite.base.parse$parse_fn$fn__4256@3c2fae83"]
 images)
Expected: st. like (Map (Function [x] (ImageContainsQ x (Entity "..."))) images)
This is a combination of Map + lambda it seems, since this one works:
(wl/->clj "ImageContainsQ[#, Entity[\"Concept\", \"CanisFamiliaris::597qc\"]]")
=> (ImageContainsQ (Slot 1) #wolframite.base.types.Entity{:Entity ["Concept" "CanisFamiliaris::597qc"]})
*)
holyjak commented 1 month ago

Fixed by https://github.com/scicloj/wolframite/pull/125