Re: [Newbies] Re: indexing into a collection

2016-07-27 Thread Ben Coman
On Wed, Jul 27, 2016 at 8:13 AM, Joseph Alotta wrote: > Ben, Ron, I made a small example, and it works as you said it would: > > a := #( #(1 2) #(3 4)). > b := a asOrderedCollection. > b => an OrderedCollection(#(1 2) #(3 4)) > c := b select: [ :i | (i first) = 3 ].

[Newbies] indexing into a collection

2016-07-27 Thread Louis LaBrunda
Hi Joe & Ben, Ben's example is a good one. If there will be only one instance of DrivingDays in the collection for a given date then you should look at Dictionary and LookupTable. You could then add items to the collection with: collection at: aDrivingDays date put: aDrivingDays. and then