Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Reverse/StringReverse' topicStudent Support Forum > General > Archives > "Reverse/StringReverse"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
03/27/12 2:48pm

Look at
FullForm[whatever you are trying to reverse]
and see exactly what you really have.

If I guess what you have I don't get what you say.

In[1]:= StringReverse[{"abc","def"}]
Out[1]= {cba,fed}

Maybe this is what you actually have.

In[2]:= StringReverse[{"abc,def"}]
Out[2]= {fed,cba}

That reverses the contents of the entire string, as it should, but that is not a list of individual strings.

If you cannot get it to work then post the smallest simplest notebook demonstrating exactly the problem you describe and someone can try to see why it is happening.

URL: ,

Subject (listing for 'Reverse/StringReverse')
Author Date Posted
Reverse/StringReverse Leonie 03/27/12 05:28am
Re: Reverse/StringReverse Bill Simpson 03/27/12 2:48pm
Re: Re: Reverse/StringReverse toen 03/28/12 00:44am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic