• 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: Michelle Steiner <email@hidden>
  • Date: Tue, 15 May 2001 15:21:39 -0700

On 5/15/01 10:48 AM, Ehsan Saffari <email@hidden> wrote:

>say there is a nested list and we count it's items:
>
>set x to {{"a", "b"}, {{"c", "d"}, {"e", "f"}}}
>set cnt to count of items in x --> 2
>
>is it possible to count the items in x (=3) without a repeat loop?

There are only two items in x

{"a", "b"} is first

{{"c", "d"}, {"e", "f"}} is the second.

--Michelle

----------------------------------------------------------------------
| Michelle Steiner | We're not human beings having a spiritual |
| | experience. We're spiritual beings |
| email@hidden | having a human experience. |
----------------------------------------------------------------------


  • Prev by Date: first few chars of filename?
  • Next by Date: Re: first few chars of filename?
  • Previous by thread: Re: Counting the items in anested list
  • Next by thread: Re: Counting the items in anested list
  • Index(es):
    • Date
    • Thread