-
Functions
- AllTrue
- AnyTrue
- Append
- AppendTo
- ArrayDepth
- ArrayQ
- ArrayRules
- BinLists
- Cases
- Count
- Delete
- DeleteAdjacentDuplicates
- DeleteCases
- DeleteDuplicates
- DeleteElements
- Dimensions
- Drop
- Extract
- First
- FirstCase
- FirstPosition
- FreeQ
- Gather
- Insert
- Last
- Length
- LengthWhile
- MapAt
- MatrixQ
- Max
- MaximalBy
- MemberQ
- Min
- MinimalBy
- Most
- NoneTrue
- Nothing
- Ordering
- Part
- Pick
- Position
- PositionLargest
- PositionSmallest
- Prepend
- PrependTo
- ReplacePart
- Rest
- Select
- SelectFirst
- SequenceCases
- SequenceCount
- SequencePosition
- Span
- SubsetCases
- SubsetCount
- SubsetPosition
- Take
- TakeDrop
- TakeList
- TakeWhile
- Tally
- UpTo
- VectorQ
- Related Guides
- Tech Notes
-
-
Functions
- AllTrue
- AnyTrue
- Append
- AppendTo
- ArrayDepth
- ArrayQ
- ArrayRules
- BinLists
- Cases
- Count
- Delete
- DeleteAdjacentDuplicates
- DeleteCases
- DeleteDuplicates
- DeleteElements
- Dimensions
- Drop
- Extract
- First
- FirstCase
- FirstPosition
- FreeQ
- Gather
- Insert
- Last
- Length
- LengthWhile
- MapAt
- MatrixQ
- Max
- MaximalBy
- MemberQ
- Min
- MinimalBy
- Most
- NoneTrue
- Nothing
- Ordering
- Part
- Pick
- Position
- PositionLargest
- PositionSmallest
- Prepend
- PrependTo
- ReplacePart
- Rest
- Select
- SelectFirst
- SequenceCases
- SequenceCount
- SequencePosition
- Span
- SubsetCases
- SubsetCount
- SubsetPosition
- Take
- TakeDrop
- TakeList
- TakeWhile
- Tally
- UpTo
- VectorQ
- Related Guides
- Tech Notes
-
Functions
Elements of Lists
The Wolfram Language provides a carefully chosen set of functions for accessing elements of lists using either indices or positions, or using patterns or criteria for their values.
list[[...]] (Part) — parts of lists, resettable with =
Span (;;) — general specification for spans or blocks of elements
First ▪ Last ▪ Rest ▪ Most ▪ Take ▪ Drop ▪ TakeDrop ▪ TakeList ▪ TakeWhile
UpTo — a certain number of elements, or as many as are available
Append ▪ Prepend ▪ Insert ▪ Delete ▪ AppendTo ▪ PrependTo
Position — find positions of elements matching a pattern
PositionSmallest, PositionLargest — find positions of the smallest or largest elements
FirstPosition ▪ Extract ▪ ReplacePart ▪ MapAt ▪ ArrayRules ▪ Ordering
Length ▪ Dimensions ▪ ArrayDepth ▪ LengthWhile
Select, SelectFirst — select elements that satisfy a criterion
Cases, FirstCase — give elements that match a pattern
Pick ▪ BinLists ▪ Count ▪ Gather ▪ Tally
DeleteCases ▪ DeleteElements ▪ DeleteDuplicates ▪ DeleteAdjacentDuplicates
Nothing — an element automatically removed from lists
MemberQ — test whether an element is a member of a list
FreeQ ▪ ArrayQ ▪ VectorQ ▪ MatrixQ
Max ▪ Min ▪ MaximalBy ▪ MinimalBy
Finding Sublists
SequencePosition ▪ SequenceCases ▪ SequenceCount