Re: Creating a sequence from integers

new topic     » goto parent     » topic index » view thread      » older message » newer message

Rich Klender wrote:
> 
> This is probably very basic but it's stumping me.
> 
> Lets say I have the following:
> 
> integer x
> integer y
> 
> x=1
> y=1
> 
> What I want is to combine them in the sequence {11}

{1,1}

.  Can I just do this by
> assigning them to a variable:
> 
> sequence combined = {xy}
  {x,y}
> 
> Sorry, looked all thru the manual and couldn't find a representative example.
> 
> Thanks!
> Rich


 integer x,y
 sequence combined

 x=1
 y=2
 combined={x,y}

 --combined[1]would =1
 --combined[2]would =2


  David Gay's tutorial goes into this quit extensivly.

Hope this helps,


Don Cole

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu