WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
Elements of Lists

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

AllTrue   AnyTrue   NoneTrue

Max   Min   MaximalBy   MinimalBy

Finding Sublists

SequencePosition   SequenceCases   SequenceCount

Finding Subsets

SubsetPosition   SubsetCases   SubsetCount

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /