New answers tagged

0 votes

Dataset column names not showing and entire dataset renders in closed form

Find set the assoc had errors. Here ia the solution. ...
user avatar
  • 1,829
9 votes
Accepted

Garbage collection for lexical closures

Here's an approach to "automate" the usage of the ExpressionCleanup` paclet mentioned by @LeonidShifrin. The idea is to return an object from your module ...
user avatar
  • 23.9k
10 votes

Garbage collection for lexical closures

If you can afford this from performance standpoint, you can generate definitions at every function call: ...
user avatar
1 vote

Trouble understanding the local variables of the Block command

For the last problem, you could convert it to boxes inside Block: ...
user avatar
  • 216k
2 votes

Trouble understanding the local variables of the Block command

(cross-posted: https://community.wolfram.com/groups/-/m/t/2547643) You say you "want x to always be a symbol", but all symbols will be replaced with their assigned values (OwnValues) if they ...
user avatar
  • 5,224
2 votes

Trouble understanding the local variables of the Block command

Example 1: ClearAll["Global`*"]; Block[{x}, x] Block[{x}, Print[x]] Output: Explanation: Block[{x}, x] returns x. Block[{x}, Print[x]] prints x and ...
user avatar
  • 24.8k
3 votes

Trouble understanding the local variables of the Block command

Your question about Print arises because it evaluates to Null in the global name space. ...
user avatar
  • 12.4k
2 votes

Counting multiple $-sign string indices in output and replacing them by normal indices

It is standard in xTensor work (and in all of xAct, actually) to set at the beginning of the session $PrePrint = ScreenDollarIndices; In this way the results will ...
user avatar
  • 5,635

Top 50 recent answers are included