Could someone please give an illustrative example showing the purpose of construct of form With[{var=myComputation[...]}, var/;True]? Also, I wonder what kind of reference material are available for getting familiar with programming idioms for Mathematica. I mean besides the basic syntax that one can learn and re-learn from standard documentation, there are repeated patterns that programmers use. Somewhat similar to design patterns and "proramming pearls" for Java.
$\begingroup$ $\endgroup$
3 - 1$\begingroup$ It is known as the "Trott-Strzebonski method for In-Place Evaluation." If you search for the word "Strzebonski" you will find numerous references. I am closing this question as this is well explained already. (See the link in the header.) $\endgroup$Mr.Wizard– Mr.Wizard2014-08-28 18:11:13 +00:00Commented Aug 28, 2014 at 18:11
- $\begingroup$ Ok, so the other half of the question is also refused? $\endgroup$user13253– user132532014-08-28 18:59:40 +00:00Commented Aug 28, 2014 at 18:59
- 1$\begingroup$ Sorry, I should not have ignored that. Those questions are already addressed in various posts, including: (18), (5059), (16485), (24988) $\endgroup$Mr.Wizard– Mr.Wizard2014-08-28 19:07:13 +00:00Commented Aug 28, 2014 at 19:07
Add a comment |