Re: building a list containing elements f(i,j)

*To*: mathgroup at smc.vnet.net*Subject*: [mg71088] Re: building a list containing elements f(i,j)*From*: "Wei-Yang Lin" <WeiYang.Lin at gmail.com>*Date*: Wed, 8 Nov 2006 06:14:04 -0500 (EST)*References*: <eimr3e$dhv$1@smc.vnet.net>

You may use Flatten[Array[f, {n,m}, {0, 0}]] Good luck! On Nov 6, 4:17 pm, "xarna... at gmail.com" <xarna... at gmail.com> wrote: > hi, > i want to construct a list of the form: > { f[1,1], ... f[n,m] } > So the list contains elements of the form f[i,j] with i ranging from 0 > to n, and j from 0 to somebound[i]. > > What would be the most elegant way to this? > thanks