We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
Take[list,n]
gives the first n elements of list.
Take[list,-n]
gives the last n elements of list.
Take[list,{m,n}]
gives elements m through n of list.
Take[list,seq1,seq2,…]
gives a nested list in which elements specified by seqi are taken at level i in list.
DetailsTake 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)Take elements from the second to the second-to-last:
Take the first two rows of a matrix:
Take all rows, and the first two columns:
Take the first two rows, and the last column:
Take every other row and column:
Take the first 4 elements if possible, else as many as are available:
Generalizations & Extensions (2) Applications (2)Sample every third cell in an image:
Properties & Relations (5)Take and Drop are complementary:
Take is often equivalent to Part extraction with Range:
Take is equivalent to Part extraction with Span:
Take gives an array whose first dimensions are its arguments:
Reverse[e] is equivalent to Take[e,{-1,1,-1}]:
Possible Issues (1)Take always returns a list, even if it is just taking a single element:
HistoryIntroduced in 1988 (1.0) | Updated in 1999 (4.0) ▪ 2000 (4.1) ▪ 2002 (4.2) ▪ 2003 (5.0) ▪ 2014 (10.0) ▪ 2015 (10.3)
Wolfram Research (1988), Take, Wolfram Language function, https://reference.wolfram.com/language/ref/Take.html (updated 2015). TextWolfram Research (1988), Take, Wolfram Language function, https://reference.wolfram.com/language/ref/Take.html (updated 2015).
CMSWolfram Language. 1988. "Take." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/Take.html.
APAWolfram 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: 12-July-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: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4