Tag Info

New answers tagged

0

First, it hasn't been pointed out yet that the Notation package has the command AddInputAlias which is in principle designed to do what this question requires. There is even a palette for it. However, if you want to add several aliases all at once, the manual approach of the Notation package is inconvenient. One way to automate the creation of shortcuts is ...


0

You can use DownValues[f] to get the list of rules, the structure of which uses HoldPattern to prevent the evaluation. DownValues[f] {HoldPattern[f[3]] :> 7, HoldPattern[f[1, 5]] :> 3, HoldPattern[f[2, 3.4]] :> 8} If you replace f with List and extract the correct part of the expressions that should return what you are after: (DownValues[f] /. f ...



Top 50 recent answers are included