Programatically creating delayed assignment
- To: mathgroup at smc.vnet.net
- Subject: [mg110200] Programatically creating delayed assignment
- From: "Stuart Nettleton" <Stuart.Nettleton at uts.edu.au>
- Date: Tue, 8 Jun 2010 07:06:33 -0400 (EDT)
- Organization: University of Technology, Sydney
Hi, I would appreciate any thoughts regarding the programatic construction
of delayed assignments, for example using something like the following
Scan:
Scan[(ToExpression[#]:= Table[ToExpression[# <> "element"][i], {i,
3}])&,{"a","b"}]
to create the following delayed assignments:
a:= {aelement[1], aelement[2], aelement[3]};
b:= {belement[1], belement[2], belement[3]};
Many thanks, Stuart
--
UTS CRICOS Provider Code: 00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information. If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments. If
you have received this message in error, please notify the sender
immediately and delete this message. Any views expressed in this message
are those of the individual sender, except where the sender expressly, and
with authority, states them to be the views the University of Technology,
Sydney. Before opening any attachments, please check them for viruses and
defects.
- Follow-Ups:
- Re: Programatically creating delayed
- From: "Stuart Nettleton" <Stuart.Nettleton@uts.edu.au>
- Re: Programatically creating delayed
- From: Leonid Shifrin <lshifr@gmail.com>
- Re: Programatically creating delayed
- From: "Stuart Nettleton" <Stuart.Nettleton@uts.edu.au>
- Re: Programatically creating delayed assignment
- From: "Stuart Nettleton" <Stuart.Nettleton@uts.edu.au>
- Re: Programatically creating delayed