• 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: are finder items items? what is a vector?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: are finder items items? what is a vector?


  • Subject: Re: are finder items items? what is a vector?
  • From: Shane Stanley <email@hidden>
  • Date: Mon, 28 Dec 2009 10:41:05 +1100
  • Thread-topic: are finder items items? what is a vector?

On 28/12/09 8:12 AM, "Paul Berkowitz" <email@hidden> wrote:

> Back (*all* the way back) in AppleScript 1.1, there were two types of list:
> linked lists and vectors, which are directional lists. I think linked lists
> used to be written with square brackets [], or maybe it's the other way
> around. Even today
>
> {1,2,3} = [1,2,3] --> true
>
> I believe certain types of operations were quicker with linked lists, but
> generally it wasn't too useful. Anyway, the distinction was removed shortly
> after.

I'm not sure anything was removed. For example:

set time1 to current date
repeat 100 times
    set x to [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
    repeat 12 times
        set x to x & x
    end repeat
end repeat
set time2 to current date
repeat 100 times
    set x to {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
    repeat 12 times
        set x to x & x
    end repeat
end repeat
set time3 to current date
return {time2 - time1, time3 - time2}


--
Shane Stanley <email@hidden>
AppleScript Pro, April 2010, Florida <http://www.applescriptpro.com>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: are finder items items? what is a vector?
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: are finder items items? what is a vector? (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: Get script's folder from within the script
  • Next by Date: Re: are finder items items? what is a vector?
  • Previous by thread: Re: are finder items items? what is a vector?
  • Next by thread: Re: are finder items items? what is a vector?
  • Index(es):
    • Date
    • Thread