Re: Scalars Instead of Lists with One Element
- To: mathgroup at smc.vnet.net
- Subject: [mg83457] Re: Scalars Instead of Lists with One Element
- From: Helen Read <hpr at together.net>
- Date: Wed, 21 Nov 2007 02:44:29 -0500 (EST)
- References: <fhu75c$72j$1@smc.vnet.net>
- Reply-to: HPR <read at math.uvm.edu>
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