Bag is missing items

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Bag is missing items

Joseph Alotta
Greetings,

I have a problem with Bag.  When I put stuff in it, they disappear.

companies is a dictionary with 454 items.

When I sort it, I first use #values to convert it to a Bag.

Attached is a screen shot.  See how it goes from 100 to 445.

Now it is missing items?

Sincerely,

Joe.


| bag sorted |

bag := companies values.

sorted := bag asSortedCollection: [ :x :y | (x at: 'points') < (y at: 'points')].
sorted inspect.



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners