The definitive Wolfram Language and notebook experience
The original technical computing environment
All-in-one AI assistance for your Wolfram experience
More mobile apps
We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise
WolframConsulting.com
More Wolfram Solutions
More Solutions for Education
Courses in computing, science, life and more
Learn, solve problems and share ideas.
News, views and insights from Wolfram
Resources for
変数xを参照する,ホールドされた式を定義する:
HoldはHoldAllの属性を持つので,ホールドされた式が定義される際にはxは評価されない.したがって,式のボディは大域変数xを参照する.xの値が返されるのは,Holdが解放されたときである:
式が定義される際に,強制的にxを評価させるためには,Withを使う:
こうすると,xの値を変更しても,Holdを解放したときに返される値には影響しない:
With HoldAll HoldFirst HoldRest HoldAllComplete Hold Function Evaluate