Re: add to wishlist
- To: mathgroup at smc.vnet.net
- Subject: [mg20370] Re: add to wishlist
- From: "Atul Sharma" <atulksharma at yahoo.com>
- Date: Sun, 17 Oct 1999 02:45:43 -0400
- References: <7u7tac$p61@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Use the Array[ ] construct instead of Table. Although it defaults to origin 1, you can specify 0 in the optional third arguement. I used this a lot when first switching to Mathematica from procedural languages, but have fallen out of the habit. A. Sharma psalzman at landau.ucdavis.edu wrote in message <7u7tac$p61 at smc.vnet.net>... >does Mathematica allow us the option of labelling the first element of a list as >item zero? it would be nice to have the option (like fortran 90) of whether >we wanted to start counting from 0 or 1. (i like to reproduce parts of my >C code to make sure all is well. translating indices can get tedious at >times) > >pete > >