I want write something like this
With[{x=1, y=x+1}, y]
and get 2 as an answer. What is the correct way to do this?
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this community
With[{x=1},With[{y=x+1}, y]]
or you can useLetL
by Leonid Shifrin. $\endgroup$