Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'How to Map out the first element of a list' topicStudent Support Forum > General > Archives > "How to Map out the first element of a list"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
jf
09/13/12 11:57am

In[1]:= Rest[ {"This", "is", "the", "first", "sentence"} ]

Out[1]= {is, the, first, sentence}

or maybe

In[2]:= Rest[ {"This", "is", "the", "first", "sentence"} ] //InputForm

Out[2]= {"is", "the", "first", "sentence"}

Drop[ {"This", "is", "the", "first", "sentence"}, 1]
also works.


If you search in the Documentation Center for "list elements" or "drop elements" or "list pieces", some of the hits will point you in the right direction.

"Map" is a built-in function that does something very different from what you want.




URL: ,

Subject (listing for 'How to Map out the first element of a list')
Author Date Posted
How to Map out the first element of a list Daniel 09/13/12 02:17am
Re: How to Map out the first element of a list jf 09/13/12 11:57am
< Previous CommentHelp | Reply To Comment | Reply To Topic