Most

Most[expr]

gives expr with the last element removed.

Details

  • Most[expr] is equivalent to Drop[expr,-1].

Examples

open allclose all

Basic Examples  (2)

Generalizations & Extensions  (2)

The head need not be List:

Most works on SparseArray objects:

Applications  (1)

Nest the operation of finding most of a list:

Properties & Relations  (1)

Most[expr] is equivalent to Drop[expr,-1]:

Possible Issues  (2)

The expression is evaluated before Most is applied:

Most always operates on the FullForm of expressions:

Wolfram Research (2003), Most, Wolfram Language function, https://reference.wolfram.com/language/ref/Most.html.

Text

Wolfram Research (2003), Most, Wolfram Language function, https://reference.wolfram.com/language/ref/Most.html.

CMS

Wolfram Language. 2003. "Most." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Most.html.

APA

Wolfram Language. (2003). Most. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Most.html

BibTeX

@misc{reference.wolfram_2024_most, author="Wolfram Research", title="{Most}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/Most.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_most, organization={Wolfram Research}, title={Most}, year={2003}, url={https://reference.wolfram.com/language/ref/Most.html}, note=[Accessed: 22-November-2024 ]}