Timeline for How to scope `Pattern` labels in rules/set?
Current License: CC BY-SA 3.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 13, 2017 at 12:56 | history | edited | CommunityBot |
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
|
|
Feb 26, 2017 at 20:21 | comment | added | Ali Hashmi |
thank you. actually i realized how blatantly wrong i was yet again. The clean function was to get the l.h.s symbols from the Set and DelayedSet definitions and then the thread is applied to get the rule x to x$something under Hold
|
|
Feb 26, 2017 at 18:40 | comment | added | Mr.Wizard | @AliHashmi I am pleased that you are not only reading my answers but looking for ways to correct and improve them. :-) Please don't hesitate to make suggestions like this. It will be good to work through them together. | |
Feb 26, 2017 at 18:35 | comment | added | Ali Hashmi |
my bad, I found that clean is indeed required for displaying y=3 in the second part
|
|
Feb 26, 2017 at 18:24 | comment | added | Ali Hashmi |
please correct me if i am wrong but the following code works without having to use clean i.e. Unevaluated[body] /. List @@ (MapAt[HoldPattern, {All, 1}]@Thread[Hold[sets] :> #, Hold] &)@ Module[{sets}, Hold[sets]]
|
|
Jul 8, 2016 at 8:11 | history | answered | Mr.Wizard | CC BY-SA 3.0 |