Re: Manipulate list elements
- To: mathgroup at smc.vnet.net
- Subject: [mg67743] Re: Manipulate list elements
- From: Bill Rowe <readnewsciv at earthlink.net>
- Date: Thu, 6 Jul 2006 06:52:49 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
On 7/5/06 at 4:17 AM, ute.paul at gmail.com wrote:
>I have a list of words. These words are written in capital letters.
>I need a list with these words in lower case letters. How can I
>manipulate the list elements that the capital letters become lower
>case letters? Example: list={{ABILITY, CAPABILITY},{PERSON, FLY}}
>=>list={{ability, capability},{person, fly}}
Making the assumption the elements are strings. That is list is really
list = {{"ABILITY", "CAPABILITY"}, {"PERSON", "FLY"}};
then ToLowerCase does the job, i.e.,
In[4]:=
ToLowerCase[list]
Out[4]=
{{"ability", "capability"}, {"person", "fly"}}
--
To reply via email subtract one hundred and four