Re: Dividing an array into subgroups?
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.