Re: Cross-referencing objects?

2010-10-06 Thread ka
@Alan I'm trying to understand why you find the solution you gave gross I could construct all the objects and have a single global map, with mappings for both set-id=[objects] and object=set-id, but this seems kinda gross and obscures what is actually meant (objects belong to sets) with

Cross-referencing objects?

2010-10-03 Thread Alan
I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's in - List all the objects in a given set In an imperative language this

Re: Cross-referencing objects?

2010-10-03 Thread Saul Hazledine
On Oct 3, 9:32 am, Alan a...@malloys.org wrote: I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's in - List all the

Re: Cross-referencing objects?

2010-10-03 Thread André Thieme
Am 03.10.2010 09:32, schrieb Alan: I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's in - List all the objects in a given

Re: Cross-referencing objects?

2010-10-03 Thread Mike Meyer
On Sun, 3 Oct 2010 00:32:16 -0700 (PDT) Alan a...@malloys.org wrote: I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's

Re: Cross-referencing objects?

2010-10-03 Thread David Nolen
On Sun, Oct 3, 2010 at 3:32 AM, Alan a...@malloys.org wrote: I've got a collection of unique objects, and I need to partition them into sets. That part's easy enough, but I need to have both of the following be efficient, and preferably easy: - Given an object, determine what set it's in -