MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Rules


If the symbol Alist has a value, you will have to hold or block it (or
otherwise prevent evaluation) in order to transform Alist into
something else.

Having a single replacement is the same as having that one replacement
wrapped in List, except for order of operations issues.

If you have a more specific example that you would like more
information about, you could just ask the list or do some
experimenting.

Regards,

On 5/10/06, Marcin Rak <umrakmm at cc.umanitoba.ca> wrote:
> Hey everyone,
>
> I had two simple questions, and was wondering wether anyone could through
> something my way:
>
> 1) When we have a list, call it AList, and we type the following
> AList /. {rule1}
> AList /. rule1
> what is the difference between the two?  And, how would I go about
> defining a rule for the variable AList, and a rule for the contents of the
> list - obviously these are two different concepts, yet how would you
> differentiate b/w the two?
>
> Thanx to all
> MR
>
>


--
http://chris.chiasson.name/


  • Prev by Date: Re: Creating a new table using values from a column in another table,
  • Next by Date: Re: Creating a new table using values from a column in another table,
  • Previous by thread: Re: Rules
  • Next by thread: Re: Rules