• 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
creating a list of integers from a range
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: creating a list of integers from a range
      • From: Graff <email@hidden>
  • Prev by Date: Re: Illustrator CS, make new spot
  • Next by Date: Re: GUI Scripting and Acrobat 6 Pro
  • Previous by thread: Re: Illustrator CS, make new spot
  • Next by thread: Re: creating a list of integers from a range
  • Index(es):
    • Date
    • Thread