home *** CD-ROM | disk | FTP | other *** search
- From: jpat@hpsad.sad.hp.com (Jeff Patterson)
- Date: Mon, 27 Jul 1992 17:27:48 GMT
- Subject: Re: Mathematica Help
- Message-ID: <1900007@hpsad.sad.hp.com>
- Organization: HP Signal Analysis Division - Rohnert Park, CA
- Path: sparky!uunet!darwin.sura.net!mips!sdd.hp.com!hplabs!hplextra!hpl-opus!hpnmdla!hpsad!jpat
- Newsgroups: sci.math
- References: <1992Jul21.222351.160911@cs.cmu.edu>
- Lines: 18
-
- In a previous post I stated that MMa did not allow direct assignment to a list.
- This is wrong, assignment is allowed as long as the element for which the
- assignment is being made exists and has an immediate value. I.e.
-
- a[[2]] = 12 results in
- Part::noval: Symbol a in part assignment does not have an immediate value.
-
- while
- a={1,2,3}
- a[[2]] = 12
-
- results in
- a= {1,12,3}
-
- Thanks to Michael Somos for pointing out my error.
- -Jeff
-
-
-