creating a list of integers from a range
creating a list of integers from a range
- Subject: creating a list of integers from a range
- From: Courtney Schwartz <email@hidden>
- Date: Thu, 11 Nov 2004 17:00:33 -0500
I am looking for something similar to this...
repeat with i from 1 to 4
--The 1 to 4 part acts like {1, 2, 3, 4}.
Something to convert a pair of numbers to a list containing that range
of integers... I wanted to just be able to say something like...
{1 to 4, 5 to 10, 11 to 12}
-- Won't work. You don't get {{1, 2, 3, 4}, {5, 6, 7, 8, 9, 10}, {11,
12}}.
but that doesn't work.
I need a list of integer lists that I can iterate over. So I made an
intRangeList(startInt, endInt) that returns a list... but that seems
inefficient, and I would rather not do that.
Is there a vanilla key word I am missing? Any other ideas aside from
the custom range-to-list function I wrote?
Courtney Schwartz
_______________________________________________
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