Re: Rules
- To: mathgroup at smc.vnet.net
- Subject: [mg66410] Re: [mg66359] Rules
- From: "Chris Chiasson" <chris at chiasson.name>
- Date: Thu, 11 May 2006 02:17:07 -0400 (EDT)
- References: <200605101034.GAA21926@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
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/
- References:
- Rules
- From: Marcin Rak <umrakmm@cc.umanitoba.ca>
- Rules