Level
gives a list of all sub-expressions of
expr
at the level(s) specified bylevelspec
.
Level uses standard level specifications:
levels
1
throughn
all levels from level
1
level
n
only
levels
m
throughn
Level 0 corresponds to the whole expression. A negative level -n
consists of parts with depth n
.
Examples
Level -1
is the set of atoms in an expression:
Use the option Heads -> True
to include heads:
Implementation status
- ✅ - full supported