• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: I want to convert a list of integers to their negative self
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I want to convert a list of integers to their negative self


  • Subject: Re: I want to convert a list of integers to their negative self
  • From: email@hidden
  • Date: Wed, 28 Feb 2001 21:03:13 EST

In a message dated 2/28/01 4:40:20 PM, Jed Verity wrote:

>What about:
>
>set A to {"1","3","7"}
>
>repeat with i from 1 to length of A
>set item i of A to ((item i of A as integer)*-1) as string
>end

And what about

set a to {"1", "3", "7"}

repeat with i in a
set a to rest of a & i div -1
end repeat

?

Jeff Baumann
email@hidden
www.linkedresources.com

15 Days, 4 Hours, 55 Minutes
How is it going to end?


  • Prev by Date: Re: Where is the Searchable Applescript-users Archive?
  • Next by Date: Re: Records
  • Previous by thread: Re: I want to convert a list of integers to their negative self
  • Next by thread: Re: I want to convert a list of integers to their negative self
  • Index(es):
    • Date
    • Thread