• 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: Counting the items in anested list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Counting the items in anested list


  • Subject: Re: Counting the items in anested list
  • From: Emmanuel <email@hidden>
  • Date: Wed, 23 May 2001 12:02:59 +0200

At 7:57 +0200 22/05/01, garbanzito wrote:

>thanks! i had glanced at commands and operators applicable
>to lists in the language guide, hadn't thought to think of
>"rest" as a property. it doesn't work on empty lists
>though. and "properties of {1, 2, 3}" returns an empty
>record. curious.

If you're not sure about the properties of lists, and you use Smile, you
can choose "Find definition" for "list", and get AppleScript's section
about it:

----------------------------
Class list : An ordered collection of items
Plural form:
lists
Properties:
length integer [r/o] -- the length of a list
reverse list [r/o] -- the items of the list in reverse order
rest list [r/o] -- all items of the list excluding first
----------------------------

Emmanuel


References: 
 >Re: Counting the items in anested list (From: Shane Stanley <email@hidden>)
 >Re: Counting the items in anested list (From: garbanzito <email@hidden>)

  • Prev by Date: Re: Mounting disk before continuing
  • Next by Date: Re: Duration of local variables
  • Previous by thread: Re: Counting the items in anested list
  • Next by thread: Re: Counting the items in anested list
  • Index(es):
    • Date
    • Thread