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: [mg78619] RE: [mg78566] making mutliple list in one line
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Thu, 5 Jul 2007 04:11:46 -0400 (EDT)
  • References: <200707040939.FAA08539@smc.vnet.net>

Hi,

> 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

You can try

	a = b = c = Range[5];
	SameQ[a, b, c]

Regards,

Dave.


  • Prev by Date: Re: making mutliple list in one line
  • Next by Date: Re: Is there a way to make ListConvolve to use a adaptive kernel?
  • Previous by thread: making mutliple list in one line
  • Next by thread: Re: making mutliple list in one line