

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 all close allBasic Examples (6)
Take the first 4 elements from a list:
Take the second element from an Association:
Take all but the first element from an Association:
Take every other element from 2 to 6 from an Association:
Scope (8)
Generalizations & Extensions (2)
Properties & Relations (5)
Possible Issues (1)
Take always returns a list, even if it is just taking a single element:
Tech Notes
Related Guides
-
▪
- Parts of Expressions ▪
- Parts of Matrices ▪
- List Manipulation ▪
- Basic Image Manipulation ▪
- Rearranging & Restructuring Lists ▪
- Elements of Lists ▪
- Computation with Structured Datasets ▪
- Numerical Data ▪
- Language Overview ▪
- Handling Arrays of Data ▪
- Tabular Objects ▪
- Structural Operations on Expressions
History
Introduced in 1988 (1.0) | Updated in 1999 (4.0) ▪ 2000 (4.1) ▪ 2002 (4.2) ▪ 2003 (5.0) ▪ 2014 (10.0) ▪ 2015 (10.3)
Text
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.
APA
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: 13-August-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: 13-August-2025]}