Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

Expression Structure

A foundational idea in the Wolfram Language is that all expressionswhatever they may representultimately have a uniform tree-like structure.


FullForm the full functional form of an expression, without shortened syntax

TreeForm a representation of the tree structure of small expressions

Head the head of an expression: the f in

Length the number of elements in an expression

Part (..[[..]]) numbered part of an expression

Level parts specified by a given number of indices

Depth the maximum number of indices to specify any part

Atomic Components of Expressions »

Symbol  ▪  Integer  ▪  Real  ▪  String  ▪  ...

Expression Sizes & Signatures

LeafCount  ▪  ByteCount  ▪  Hash