MathGroup Archive 2006

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

Search the Archive

Re: Manipulate list elements

  • To: mathgroup at smc.vnet.net
  • Subject: [mg67745] Re: Manipulate list elements
  • From: Helen Read <hpr at together.net>
  • Date: Thu, 6 Jul 2006 06:53:03 -0400 (EDT)
  • References: <e8ftmb$qch$1@smc.vnet.net>
  • Reply-to: HPR <read at math.uvm.edu>
  • Sender: owner-wri-mathgroup at wolfram.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}}

First off, the words in your list should be input as strings (note the 
quotation marks).

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

ToLowerCase[list]

You might want to look up String in the Help Browser.

-- 
Helen Read
University of Vermont


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