Re: list organization question

2008-12-11 Thread John Machin
On Dec 12, 10:17 am, Robocop wrote: > I'm currently trying something along the lines of a sort.compare, but > as i'm never sure how many mini-lists i'll end up with, i'm not sure > how exactly to begin.  Maybe something like a C vector, i.e. a list of > pointers to other lists?  Or more specifical

Re: list organization question

2008-12-11 Thread Robocop
On Dec 11, 3:31 pm, Arnaud Delobelle wrote: > Robocop writes: > > I have a list of objects, each object having two relevant attributes: > > date and id.  I'd like not only organize by id, but also by date. > > I.e. i would like to parse my list into smaller lists such that each > > new mini-list

Re: list organization question

2008-12-11 Thread Arnaud Delobelle
Robocop writes: > I have a list of objects, each object having two relevant attributes: > date and id. I'd like not only organize by id, but also by date. > I.e. i would like to parse my list into smaller lists such that each > new mini-list has a unique date, but consists of only objects with a

Re: list organization question

2008-12-11 Thread MRAB
Robocop wrote: I have a list of objects, each object having two relevant attributes: date and id. I'd like not only organize by id, but also by date. I.e. i would like to parse my list into smaller lists such that each new mini-list has a unique date, but consists of only objects with a specific

Re: list organization question

2008-12-11 Thread Joe Strout
On Dec 11, 2008, at 4:12 PM, Robocop wrote: I have a list of objects, each object having two relevant attributes: date and id. I'd like not only organize by id, but also by date. I.e. i would like to parse my list into smaller lists such that each new mini-list has a unique date, but consists o

Re: list organization question

2008-12-11 Thread Robocop
I'm currently trying something along the lines of a sort.compare, but as i'm never sure how many mini-lists i'll end up with, i'm not sure how exactly to begin. Maybe something like a C vector, i.e. a list of pointers to other lists? Or more specifically, compare dates in my list, push that into

list organization question

2008-12-11 Thread Robocop
I have a list of objects, each object having two relevant attributes: date and id. I'd like not only organize by id, but also by date. I.e. i would like to parse my list into smaller lists such that each new mini-list has a unique date, but consists of only objects with a specific id. Are there a