Timeline for Extracting RHS from Rule
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 13, 2012 at 17:50 | comment | added | Mr.Wizard |
As a point of reference you can, in this limited case, get the desired results with rules2[[All, {1}, 2]] for the reason described here but it is far better to enter the expression correctly in the first place.
|
|
Nov 13, 2012 at 17:45 | comment | added | Mr.Wizard |
The output I get does not match what you show. I get: {MySum -> 1, MyProd -> #1} . This is no mystery as the Function has a body of only one argument so Last (or First ) is simply returning that body, evaluated. Sorry, but -1.
|
|
Nov 13, 2012 at 16:37 | review | Low quality posts | |||
Nov 13, 2012 at 16:44 | |||||
Nov 13, 2012 at 16:21 | history | answered | murray | CC BY-SA 3.0 |