Questions tagged [meta-programming]
59 questions
5
votes
1 answer
Meta information about function parameters
I'm working on a project that allows for executing arbitrary, user-defined Mathematica scripts. It's an internal tool running on a trusted, local network. It's basically a web interface to Mathematica.
For every user-defined package I import, I can…
isanae
- 153
- 5
2
votes
0 answers
Get matching types for pattern
I want to take a pattern and get a set of matching types. The set of types does not need to be complete, but it needs to satisfy, say, 90% of the cases.
Here's is a (definitely not complete) set of examples:
arg_ -> "Arbitrary"
arg__ -> "Arbitrary…
b3m2a1
- 46,870
- 3
- 92
- 239
1
vote
1 answer
Simple Macro or Meta Programming for Data Analysis
I have a large number of data variables that are represented in MMA as symbols set to lists. For example:
x = {1, 2, 3};
y = {4, 5, 6};
I want to be able to write simple transformation rules on the data that I'd like to apply to the variables…
pjc42
- 733
- 3
- 13