Re: Counting the items in anested list
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. |
----------------------------------------------------------------------