• 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: Dividing an array into subgroups?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dividing an array into subgroups?


  • Subject: Re: Dividing an array into subgroups?
  • From: Michael Tsai <email@hidden>
  • Date: Mon, 16 Jun 2003 23:42:30 -0400

On Monday, June 16, 2003, at 11:09 PM, Andrew Merenbach wrote:

I would like to divide an array into subarrays of a specified size, and to assign the remainder to their own array.

I'm uncertain as to whether it would actually be a good idea, but might there exist a tail-recursive partitioning algorithm that would work better than the above code? Could
there be any advantage to it, such as speed or code size?

Well, Objective-C doesn't optimize tail calls...

--
Michael Tsai <http://www.c-command.com>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Dividing an array into subgroups?
      • From: Andrew Pinski <email@hidden>
References: 
 >Dividing an array into subgroups? (From: Andrew Merenbach <email@hidden>)

  • Prev by Date: Re: How to warn users in the installer that 10.2 is required?
  • Next by Date: Open Directory Sample
  • Previous by thread: Dividing an array into subgroups?
  • Next by thread: Re: Dividing an array into subgroups?
  • Index(es):
    • Date
    • Thread