Take
✖
Take
Details

- Take uses the standard sequence specification:
-
All all elements None no elements n elements 1 through n UpTo[n] elements 1 up to at most n, as available -n last n elements {n} element n only {m,n} elements m through n inclusive {m,n,s} elements m through n in steps of s - Take can be used on an object with any head, not necessarily List.
- Take[list,seq1,seq2] effectively extracts a submatrix from list.
- Applying Take to a SparseArray object normally yields another SparseArray object.
- Applying Take to an Association object yields an Association containing elements from the specified positions.
Examples
open allclose allBasic Examples (6)Summary of the most common use cases
Take the first 4 elements from a list:

https://wolfram.com/xid/0gisao-lig


https://wolfram.com/xid/0gisao-nn8


https://wolfram.com/xid/0gisao-c6q

Take the second element from an Association:

https://wolfram.com/xid/0gisao-hdihi8

Take all but the first element from an Association:

https://wolfram.com/xid/0gisao-dulbxx

Take every other element from 2 to 6 from an Association:

https://wolfram.com/xid/0gisao-kcc9rd

Scope (8)Survey of the scope of standard use cases
Take elements from the second to the second-to-last:

https://wolfram.com/xid/0gisao-vyc


https://wolfram.com/xid/0gisao-il0

Take the first two rows of a matrix:

https://wolfram.com/xid/0gisao-r4e

Take all rows, and the first two columns:

https://wolfram.com/xid/0gisao-el4

Take the first two rows, and the last column:

https://wolfram.com/xid/0gisao-eaj


https://wolfram.com/xid/0gisao-lr1

Take every other row and column:

https://wolfram.com/xid/0gisao-np6

Take the first 4 elements if possible, else as many as are available:

https://wolfram.com/xid/0gisao-w7zfi1

Generalizations & Extensions (2)Generalized and extended use cases
Take works with any head, not just List:

https://wolfram.com/xid/0gisao-tca


https://wolfram.com/xid/0gisao-iaw


https://wolfram.com/xid/0gisao-pu3

Take works with SparseArray objects:

https://wolfram.com/xid/0gisao-rcz


https://wolfram.com/xid/0gisao-iix

Applications (2)Sample problems that can be solved with this function
Properties & Relations (5)Properties of the function, and connections to other functions
Take and Drop are complementary:

https://wolfram.com/xid/0gisao-mls


https://wolfram.com/xid/0gisao-xd0

Take is often equivalent to Part extraction with Range:

https://wolfram.com/xid/0gisao-vkl


https://wolfram.com/xid/0gisao-r5k


https://wolfram.com/xid/0gisao-kwk


https://wolfram.com/xid/0gisao-x5w

Take is equivalent to Part extraction with Span:

https://wolfram.com/xid/0gisao-e6co5


https://wolfram.com/xid/0gisao-elgznb


https://wolfram.com/xid/0gisao-dlmexs

Take gives an array whose first dimensions are its arguments:

https://wolfram.com/xid/0gisao-evg

Reverse[e] is equivalent to Take[e,{-1,1,-1}]:

https://wolfram.com/xid/0gisao-b0fuu2


https://wolfram.com/xid/0gisao-br3cc7


https://wolfram.com/xid/0gisao-c4mmrm

Possible Issues (1)Common pitfalls and unexpected behavior
Take always returns a list, even if it is just taking a single element:

https://wolfram.com/xid/0gisao-lf2

Wolfram Research (1988), Take, Wolfram Language function, https://reference.wolfram.com/language/ref/Take.html (updated 2015).
Text
Wolfram Research (1988), Take, Wolfram Language function, https://reference.wolfram.com/language/ref/Take.html (updated 2015).
Wolfram Research (1988), Take, Wolfram Language function, https://reference.wolfram.com/language/ref/Take.html (updated 2015).
CMS
Wolfram Language. 1988. "Take." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/Take.html.
Wolfram Language. 1988. "Take." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/Take.html.
APA
Wolfram Language. (1988). Take. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Take.html
Wolfram Language. (1988). Take. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Take.html
BibTeX
@misc{reference.wolfram_2025_take, author="Wolfram Research", title="{Take}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/Take.html}", note=[Accessed: 21-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_take, organization={Wolfram Research}, title={Take}, year={2015}, url={https://reference.wolfram.com/language/ref/Take.html}, note=[Accessed: 21-April-2025
]}