You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the seemingly same SetDelayed... call behaves differently. TODO: Explore the Expr instace in detail. Its string representation could mean different things... .
holyjak
changed the title
Cannot define functions the same way as Wolfram
Cannot define functions the same way as Wolfram (using Pattern and Blank, not Function)
Sep 13, 2024
When writing the docs for said behaviour, I came across this issue (which I'm not sure existed previously).
Returns "$Failed". The string can be evaluated inside Wolfram fine and corresponds to a basic function definition:
I can get the desired behaviour with
, but this is only because w/fn is an especially coded exception.
It's also worth noting that we can no longer write
, but instead must write
The text was updated successfully, but these errors were encountered: