MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: making mutliple list in one line

  • To: mathgroup at smc.vnet.net
  • Subject: [mg78586] Re: making mutliple list in one line
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
  • Date: Thu, 5 Jul 2007 03:54:38 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f6fqjb$8lg$1@smc.vnet.net>

JGBoone at gmail.com wrote:
> is there a way to make mutliple lists on one line of command?
> i am writing 3 lines like so
> a=Range[x]
> b=Range[x]
> c=Range[x]
>  and want to make it into one line
> 
> 
> thanks

Is something like the following is what your are looking for?

In[1]:= {a, b, c} = Table[Range[4], {3}]

Out[1]= {{1, 2, 3, 4}, {1, 2, 3, 4}, {1, 2, 3, 4}}

In[2]:= a

Out[2]= {1, 2, 3, 4}

In[3]:= b

Out[3]= {1, 2, 3, 4}

In[4]:= c

Out[4]= {1, 2, 3, 4}

HTH,
Jean-Marc


  • Prev by Date: Re: making mutliple list in one line
  • Next by Date: Re: making mutliple list in one line
  • Previous by thread: Re: making mutliple list in one line
  • Next by thread: Re: making mutliple list in one line