Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using Module[{v1, v2}, v2=f[v1]; g[v1, v2]] the best/only way to avoid nested module?
With[ {v1 = #}, With[ {v2 = f[v1]}, g[v1, v2] ] ]
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using Module[{v1, v2}, v2=f[v1]; g[v1, v2]] the best/only way?
With[ {v1 = #}, With[ {v2 = f[v1]}, g[v1, v2] ] ]
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using Module[{v1, v2}, v2=f[v1]; g[v1, v2]] the best/only way to avoid nested module?
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using ModuleModule[{v1, v2}, v2=f[v1]; g[v1, v2]] the best/only way?
With[ {v1 = #}, With[ {v2 = f[v1]}, g[v1, v2] ] ]
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using Module the best/only way?
With[ {v1 = #}, With[ {v2 = f[v1]}, g[v1, v2] ] ]
How to avoid nested With[] like the above? I'd like to use v1 and v2=f[v1] in the module's body. Is using Module[{v1, v2}, v2=f[v1]; g[v1, v2]] the best/only way?