Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Converting a position to an integer' topicStudent Support Forum > General > "Converting a position to an integer"

Next Comment >Help | Reply To Topic
Author Comment/Response
Millie Wan
12/23/99 7:44pm

I work with lists, in which I extract a position using Position[] command
which gives output {{i}}. I need to apply the obtained position as an integer
to another list, in order to extract some data from it. The problem I have is
the position command gives me a position specification with a head List.
How do I convert the output {{i}} to an integer so that I can use it in a
command such as list[[i]] where i is an integer? I do not want to physically
type in a number as I want to use this in a Do loop.


URL: ,

Subject (listing for 'Converting a position to an integer')
Author Date Posted
Converting a position to an integer Millie Wan 12/23/99 7:44pm
Re: Converting a position to an integer Aaron Honecker 12/27/99 10:37am
Re: Converting a position to an integer Kurt 12/27/99 10:38am
Next Comment >Help | Reply To Topic