Re: Delete an item in a list ?
Re: Delete an item in a list ?
- Subject: Re: Delete an item in a list ?
- From: Paul Berkowitz <email@hidden>
- Date: Fri, 12 Nov 2004 09:29:35 -0800
On 11/12/04 9:18 AM, "Bernard Bernu" <email@hidden> wrote:
>
> Le 12 nov. 04, à 17:33, Paul Berkowitz a écrit :
>
>> set rangeList to createarray 6 range {5.0, 10.0} as list of real
>>
> almost that:
> set rangeList to (createarray 6 range {5.0, 10.0}) as list of real
> otherwise it understands : {5.0, 10.0} as list of real
>
-- {5.0, 6.0, 7.0, 8.0, 9.0, 10.0}
Neat. Silly of me not to check that.
Emmanuel, would there be any chance of an optional 'as list of integer'
parameter/coercion for such cases where this would work without error? It
would save having to coerce each list item separately. (You might need to
watch out for - or maybe even allow for - cases where the reals are not
whole numbers but would round down to the nearest integer.)
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden