MathGroup Archive 2007

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

Search the Archive

Re: Scalars Instead of Lists with One Element


Gregory Lypny wrote:
> Hello everyone,
> 
> Say I have the list x={2, 7}.  Is there a command I can use to get 2  
> rather than {2} when I ask for x[[1]], and 7 rather than {7} when I  
> ask for x[[2]]?  

x[[1]] *does* return 2 and not {2}, and x[[2]] *does* return 7.

-- 
Helen Read
University of Vermont


  • Prev by Date: Re: Scalars Instead of Lists with One Element
  • Next by Date: Re: more issues with v.6.0.1
  • Previous by thread: Re: Scalars Instead of Lists with One Element
  • Next by thread: Re: Scalars Instead of Lists with One Element