Values
Examples
open all close allBasic Examples (4)
Get the values in an association:
Values[<|a -> 1, b -> 2, c -> 3|>]Get values from a list of rules:
Values[{a -> 1, b -> 2, c -> 3}]Values automatically threads over lists:
Values[{<|a -> 1, b -> 2|>, {w -> 3, {}}}]Wrap values with Hold to prevent evaluation:
Values[<|a :> 1 + 1, b -> Nothing|>, Hold]Properties & Relations (3)
Values are listed in the order of their appearance:
Values[{c -> z, b -> y, a -> x}]Values automatically threads over lists, but not associations:
Values[{<|a -> x, b -> y|>, <|a -> <|1 -> i, 2 -> j|>, b -> y|>}]Values returns values of a TimeSeries input:
ts = TemporalData[TimeSeries, {{{-0.9038685107919955, 0.5762826264119258, 0.7231235161107108,
0.8508632752481811, -0.491409676024114}}, {{0, 4, 1}}, 1, {"Continuous", 1}, {"Discrete", 1},
1, {ResamplingMethod -> {"Interpolation", InterpolationOrder -> 1}}}, False, 10.1];Values[ts]ts["Values"]Possible Issues (1)
For some special cases such as Nothing and Splice, Values may return a list of unequal length to Keys:
assoc = <|a -> Nothing, b -> Nothing, c -> 1, d -> 3|>;Values[assoc]Keys[assoc]//LengthValues[<|a -> Splice[{1, 2, 3}], b -> 2, c -> 3|>]Keys[<|a -> Splice[{1, 2, 3}], b -> 2, c -> 3|>]//LengthSee Also
Related Guides
Related Workflows
- Find All Initializations ▪
- Build a Multipage Form
Text
Wolfram Research (2014), Values, Wolfram Language function, https://reference.wolfram.com/language/ref/Values.html (updated 2019).
CMS
Wolfram Language. 2014. "Values." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Values.html.
APA
Wolfram Language. (2014). Values. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Values.html
BibTeX
@misc{reference.wolfram_2026_values, author="Wolfram Research", title="{Values}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Values.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_values, organization={Wolfram Research}, title={Values}, year={2019}, url={https://reference.wolfram.com/language/ref/Values.html}, note=[Accessed: 13-June-2026]}