"Expression" (Interpreter Type)
Wolfram Language expression.
Details
- "Expression" can be used in Interpreter and related constructs, including deployed smart form fields.
- Use of "Expression" does not require connectivity to the Wolfram Cloud.
Restriction Specifications
-
Restricted["Expression",{{choice1,…}}] one among choices Restricted["Expression",symbols] an expression involving only the given symbols (All, Automatic, or an explicit list) Restricted["Expression",symbols,contexts] an expression involving only the given symbols or symbols in the given contexts (All, Automatic, or an explicit list) Restricted["Expression",symbols,contexts,resultcontext] an expression involving only the given symbols or symbols in the given contexts, where the new symbols are created in resultcontext
Interpretation
- "Expression" can yield any Wolfram Language expression.
Examples
Basic Examples (7)
Restrict to a list of choices:
By default, only expressions with no side effect are allowed:
This can be changed by allowing All symbols:
Restrict to a list of symbols:
By default, new symbols are created in $Context, but a custom context can be specified: