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

Mergent

Symbols

  • DeconstructExpression
  • MergeExpression
  • ReconstructExpression
FaizonZaman`Mergent`
DeconstructExpression
​
DeconstructExpression
[expr]
returns an association of the
expr
head mapped to the
PositionIndex
of its arguments
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Deconstruct an expression with arbitrary head:
In[1]:=
DeconstructExpression
[head[a,b,c]]
Out[1]=
heada{1},b{2},c{3}
Deconstruct an atomic expression:
In[2]:=
DeconstructExpression
["hello"]
Out[2]=
Stringhello{1}
In[3]:=
DeconstructExpression
[Graph[Thread[{1,2,3}{"a","b","c"}]]]
Out[3]=
Graph
{1}
SeeAlso
ReconstructExpression
▪
MergeExpression
""

© 2025 Wolfram. All rights reserved.

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