MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Manipulate list elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67737] Re: [mg67700] Manipulate list elements
  • From: János <janos.lobb at yale.edu>
  • Date: Thu, 6 Jul 2006 06:52:36 -0400 (EDT)
  • References: <200607050817.EAA26386@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

On Jul 5, 2006, 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}}

First you might want to create a string from those uppercased words.   
Here is a newbie approach:

In[8]:=
(ToLowerCase[ToString[
      #1]] & ) /@ lst
Out[8]=
{"{ability, capability}",
   "{person, fly}"}

János


----------------------------------------------
Trying to argue with a politician is like lifting up the head of a  
corpse.
(S. Lem: His Master Voice)


  • Prev by Date: RE:Simplest question: How to control some values in Input dialog box
  • Next by Date: Re: Beginner--Simplest question: How to control some values in Input dialog box
  • Previous by thread: Manipulate list elements
  • Next by thread: Re: Manipulate list elements