MathGroup Archive 2006

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

Search the Archive

Re: Manipulate list elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67731] Re: [mg67700] Manipulate list elements
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Thu, 6 Jul 2006 06:52:14 -0400 (EDT)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

If the list is composed of strings

list={{"ABILITY", "CAPABILITY"},{"PERSON", "FLY"}};

ToLowerCase/@list

{{"ability", "capability"}, {"person", "fly"}}

Otherwise,

list={{ABILITY, CAPABILITY},{PERSON, FLY}};

ToLowerCase/@Map[ToString,list,{2}]

{{"ability", "capability"}, {"person", "fly"}}


Bob Hanlon

---- "ute.paul at gmail.com" <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}}
> 


  • Prev by Date: RE:Simplest question: How to control some values in Input dialog box
  • Next by Date: Re: Problem with Mathematica 5.2 on G5 Macintosh Systems
  • Previous by thread: RE: Manipulate list elements
  • Next by thread: Re: Manipulate list elements