Wolfram: Extract (Get Element by Position)
Get Element by Position
Extract-
Extract[expr, position]Extract[expr, {pos1, pos2, etc}]
return the part of expr at a given Position, or a list of them.
Extract[ {a,{{b,c},d},e}, {1} ] (* a *) Extract[ {a,{{b,c},d},e}, {2} ] (* {{b, c}, d} *) Extract[ {a,{{b,c},d},e}, {3} ] (* e *) Extract[ {a,{{b,c},d},e}, {2, 1} ] (* {b, c} *) Extract[ {a,{{b,c},d},e}, {2, 1, 1} ] (* b *) (* extract multiple items *) Extract[ {a,{{b,c},d},e}, { {3}, {2, 1, 1} } ] (* {e, b} *)
Wolfram. List Operations, and Loop, Iteration, Recursion
- Wolfram: List Operations
- Wolfram: List. Table (Create List, Nested Array)
- Wolfram: Range (Create Flat List)
- Wolfram: List. Get Element by Index (Part, Take, Drop, First, Last, Most, Rest)
- Wolfram: Extract (Get Element by Position)
- Wolfram: List. Add Element
- Wolfram: List. Delete Element
- Wolfram: List. Change Element
- Wolfram: List. Check Exist, Count
- Wolfram: List. Position (Get Positions of Elements by Pattern)
- Wolfram: List. Join, Union, Intersection, Difference
- Wolfram: List. Min, Max
- Wolfram: List. Select (Filter)
- Wolfram: List. Sort Reverse Ordering
- Wolfram: Flatten
- Wolfram: Riffle (Add at Every Nth)
- Wolfram: RotateLeft
- Wolfram: Padding
- Wolfram: List. Partition, Reshape, Split, Gather
- Wolfram: Transpose
- Wolfram: List. Same Items Counts, Tally, Group
- Wolfram: List. Combinatorics
- Wolfram: Iteration
- Wolfram: Map Function to List
- Wolfram: Scan (foreach)
- Wolfram: Nest, FixedPoint (Recursion)
- Wolfram: Fold (reduce)
- Wolfram: Loop