WOLFRAM

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

Most [expr]

gives expr with the last element removed.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Generalizations & Extensions  
Applications  
Properties & Relations  
Possible Issues  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page

Most [expr]

gives expr with the last element removed.

Details

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

Examples

open all close 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:

See Also

Rest   Drop   Last   Part   Take

Tech Notes

History

Introduced in 2003 (5.0)

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_2025_most, author="Wolfram Research", title="{Most}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/Most.html}", note=[Accessed: 09-January-2026]}

BibLaTeX

@online{reference.wolfram_2025_most, organization={Wolfram Research}, title={Most}, year={2003}, url={https://reference.wolfram.com/language/ref/Most.html}, note=[Accessed: 09-January-2026]}

Top [フレーム]

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