Extract
The part of expr at position pos, or a list of parts at several positions.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Extract✓Extract(expr, pos)the part at pos — a bare integer, or a {i, j, …} path drilling into nested operandsExtract(expr, {{pos1}, {pos2}, …})the LIST of parts at each of several positions, one per elementTyped signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> any | combinatorics | always |
Details
- Same 1-based, negative-counts-from-the-end indexing as At/Part.
- Disambiguated Wolfram's own way: pos is a single path unless every one of its own elements is itself a List, in which case it's a list of paths.
- Extract(expr, {}) is expr itself — the trivial, zero-step path.
Examples
About
| Examples | 6 |
|---|---|
| Checked against | Wolfram Language 6 agree |
| Crosswalk | Wolfram Language |
See also: ReplacePart, Level