Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

CodeEquivalenceUtilities

Guides

  • Code Equivalence Utilities

Tech Notes

  • Adding New Transformation Rules

Symbols

  • CodeEquivalentQ
  • EquivalenceTestData
  • FromCanonicalForm
  • MakeCanonicalForm
  • ToCanonicalForm
  • TransformHold
  • TransformRelease
  • $AllowedEvaluationPatterns
Wolfram`CodeEquivalenceUtilities`
TransformHold
​
TransformHold
[expr]
represents a subexpression that should not be transformed.
​
Details and Options

Examples  
(5)
Basic Examples  
(2)
Mask part of an expression from transformations:
In[1]:=
MakeCanonicalForm
Range
TransformHold
[3+1+2]
Out[1]=
Table

1
∷
,

1
∷
,1,3+1+2,1
Compare to the default behavior:
In[2]:=
MakeCanonicalForm
[Range[3+1+2]]
Out[2]=
Table

1
∷
,

1
∷
,1,6,1
​
Prevent transformation of
Range
into a
Table
:
In[1]:=
MakeCanonicalForm
Array
TransformHold
[Range],10
Out[1]=
TableRange

1
∷
,

1
∷
,1,10,1
Compare to the default behavior:
In[2]:=
MakeCanonicalForm
[Array[Range,10]]
Out[2]=
TableTable

1
∷
,

1
∷
,1,

2
∷
,1,

2
∷
,1,10,1
Properties & Relations  
(3)

SeeAlso
TransformRelease
 
▪
MakeCanonicalForm
 
▪
ToCanonicalForm
RelatedGuides
▪
Code Equivalence Utilities
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com