Linked Questions

2 votes
2 answers
113 views

Building a replacement rule from a pattern, Assocation and RuleDelayed [duplicate]

I'm trying to create a function that builds a replacement rule from a given pattern and I have trouble understanding what's going wrong. After having written most of the question, I see that it got ...
Lukas Lang's user avatar
  • 34.4k
22 votes
4 answers
1k views

Is expression in Mathematica well defined?

According to Mathematica, everything is an expression. So an atom is also an expression. But in other parts of documentation, they say that an expression is of form ...
Bob Ueland's user avatar
  • 1,079
32 votes
2 answers
2k views

List of atomic expressions

I was surprised to see Graph objects are atomic. Is there a way (through documentation or programmatically) to find all atomic heads? The ones I know of are: ...
Greg Hurst's user avatar
  • 36.8k
16 votes
3 answers
591 views

Evaluated vs. unevaluated Association

This question might have a remote connection to my older question, it is also about sameness of expressions and subtle differences observable only in certain forms. I encountered this strange ...
Vladimir Reshetnikov's user avatar
14 votes
2 answers
941 views

Replace and Association

I'm surprised that I can't find this question already, so perhaps I'm missing something obvious. I would like to take a list of associations and remove any with value ...
Patrick Stevens's user avatar
6 votes
2 answers
148 views

How to define a functional that produces at runtime a function by evaluating selected parts in its definition?

Consider the following functional as an example: ...
user13892's user avatar
  • 9,751
2 votes
3 answers
198 views

Using Association[] in an Immediate Function

I have an Association[] which is the result of an intensive computation. Its values include the variable x and I would like to ...
LBogaardt's user avatar
  • 1,605
6 votes
2 answers
190 views

Why is Evaluate not handle on the Association?

This is a demo code ...
partida's user avatar
  • 6,866
4 votes
1 answer
93 views

Refer to OptionValue externally without a specific function name

I want to refer to the actual option values of a function f outside of f, using OptionValue. ...
István Zachar's user avatar
2 votes
2 answers
69 views

Pattern matching in Association fails in `Set` assignment

I want to define a symbolic-valued function using Set to memoize the result. However, I get different results when using an ...
Phro's user avatar
  • 131