Re: I want to convert a list of integers to their negative self
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?