ValueQ¶
Status: Stable
documented, exercised by the test suite and/or worked examples, with no known limitations recorded.
Description¶
ValueQ[expr]
gives True if a value has been defined for expr, False otherwise.
Notes
HoldAll: inspects the symbol itself, not its evaluated value. A bare symbol tests OwnValues; f\[...\] tests whether head f has any DownValues.Examples (5)¶
Every input below was run against the current Mathilda build and its output recorded.
Basic examples (5)¶
Head has DownValues
Bare symbol, only DownValues
HoldAll preserved via Unevaluated
Implementation notes¶
Attributes: HoldAll, Protected.
References¶
See also: HoldAll
- Source:
src/info.c - Specification:
docs/spec/builtins/expression-information.md - Tests:
tests/test_core.c - Tests:
tests/test_nminimize.c