<meta http-equiv="content-type" content="text/html; charset=utf-8"><div>How did you put the screen shot in your email?<br><br>Sent from my iPhone&nbsp;</div><div><br>On Apr 20, 2016, at 4:54 PM, cbc [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4891087&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:<br><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' type="cite"><div>

        <div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 20, 2016 at 2:25 PM, Joseph Alotta <span dir="ltr">&lt;<a href="/user/SendEmail.jtp?type=node&amp;node=4891078&amp;i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt;</span> wrote:<br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">There is a possibility of duplicates.&nbsp; For example, if I go to Starbucks buy a coffee, then buy a second cup.&nbsp; There would be two transactions same amount, same day.
<br><br>What about OrderedCollection?
<br><br></blockquote><div>OrderedCollection would also work, especially if you want to see what order they happened in. If you just care about counting the times it happened, Bag might be better.</div><div>&nbsp;</div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote">How do I send #asSet to the bag, give that the bag is an instance variable in my larger object?
<br><br></blockquote><div>In the explorer (right where you tried exploring the dictionary value in the bag), select the bag variable.</div><div>Then, down int eh bottom pane, type in&nbsp;</div><div>&nbsp; &nbsp;self asSet</div><div>and explore that.</div><div><img src="http://forum.world.st/attachment/4891078/0/image.png" alt="Inline image 1" width="385" height="224"><br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="gmail_quote"><br><br><br><div><span class=""><div class="shrinkable-quote"><div class='shrinkable-quote'><br>&gt; On Apr 20, 2016, at 2:43 PM, cbc [via Smalltalk] &lt;<a href="http:///user/SendEmail.jtp?type=node&amp;node=4891076&amp;i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>&gt; wrote:
<br>&gt; 
<br>&gt; HI Joe,
<br>&gt; A Bag is a structure to hold multiple, possibly repeating, objects in it.&nbsp; One of the benefits is to know how many times an object is inside of the bag - how many times it repeats.
<br>&gt; 
<br>&gt; Bag is implemented with a Dictionary it in - the key is the objects that you put into the bag, and the value is the count of how many times it was put into the bag (hence all of the 1's that you see - they were probably just added once to the bag).
<br>&gt; 
<br>&gt; The explorer is optimized to make Dictionary navigation fast and convenient for normal Dictionaries - you can see and select the key, and get to see the details of the values in the dictionary.
<br>&gt; It is not optimized for looking at the dictionary in the Bag, where you care about the key (and mostly not about the value - at least for your use case).
<br>&gt; 
<br>&gt; To explore the values in the Bag, I would suggest one of two ways of getting at the data:
<br>&gt; 1&gt; send #asSet to the bag, and explore that
<br>&gt; 2&gt; send #keys to the dictionary, and explore that
<br>&gt; Either should work.
<br>&gt; 
<br>&gt; One more thing to think about - if you aren't going to have multiples of your Transaction objects (or don't care to know that you have multiple of them) in your Bag, you might want to consider using a Set instead.
<br>&gt; 
<br>&gt; Thanks,
<br>&gt; cbc
<br>&gt; 
</div></span><span class="">&gt; On Wed, Apr 20, 2016 at 12:31 PM, Joseph Alotta &lt;[hidden email]&gt; wrote:
<div class="shrinkable-quote"><br>&gt; Help!
<br>&gt; 
<br>&gt; 
<br>&gt; I have a data structure as the screenshot below shows.
<br>&gt; 
<br>&gt; There is a Bag with Transaction objects.
<br>&gt; 
<br>&gt; I can’t see inside the Transaction objects?
<br>&gt; 
<br>&gt; Why is there a Dictionary?
<br>&gt; 
<br>&gt; I can see the beginning of the transaction data, but I can’t the the whole line?
<br>&gt; 
<br>&gt; When I explore, it opens a window on Integer 1.&nbsp; Where are all the 1s coming from?
<br>&gt; 
<br>&gt; 
<br>&gt; Sincerely,
<br>&gt; 
<br>&gt; Joe.
<br>&gt; 
<br>&gt; 
<br>&gt; here is the link: <a href="https://www.flickr.com/photos/jalotta/26480315621/" rel="nofollow" link="external" target="_blank">https://www.flickr.com/photos/jalotta/26480315621/</a><br>&gt; 
<br>&gt; 
<br>&gt; 
<br>&gt; _______________________________________________
<br>&gt; Beginners mailing list
</div></span>&gt; [hidden email]
<div class="shrinkable-quote"><br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; 
<br>&gt; 
<br>&gt; _______________________________________________ 
<br>&gt; Beginners mailing list 
<br>&gt; [hidden email] 
<br>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="nofollow" link="external" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>&gt; 
<br>&gt; 
<br>&gt; If you reply to this email, your message will be added to the discussion below:
<br>&gt; <a href="http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891054.html" rel="nofollow" link="external" target="_blank">http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891054.html</a><br>&gt; To start a new topic under Squeak - Beginners, email <a href="http:///user/SendEmail.jtp?type=node&amp;node=4891076&amp;i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a> 
<br>&gt; To unsubscribe from Squeak - Beginners, click here.
<br>&gt; NAML
</div></div>

        
        
        
</div><hr align="left" width="300">
View this message in context: <a href="http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891076.html" target="_blank" rel="nofollow" link="external">Re: Help! can't see inside a Bag</a><br>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html" target="_blank" rel="nofollow" link="external">Squeak - Beginners mailing list archive</a> at <a href="http://nabble.com" target="_top" rel="nofollow" link="external">Nabble.com</a>.<br><br>_______________________________________________<br>
Beginners mailing list<br>
<a href="/user/SendEmail.jtp?type=node&amp;node=4891078&amp;i=1" target="_top" rel="nofollow" link="external">[hidden email]</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="nofollow" target="_blank" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>
<br>_______________________________________________
<br>Beginners mailing list
<br><a href="/user/SendEmail.jtp?type=node&amp;node=4891078&amp;i=2" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>

        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1" color="#cccccc">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891078.html" target="_top" rel="nofollow" link="external">http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891078.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4891087&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> <br>
                To unsubscribe from Squeak - Beginners, <a href="" target="_top" rel="nofollow" link="external">click here</a>.<br>
                <a href="http://forum.world.st/template/NamlServlet.jtp?macro=macro_viewer&amp;id=instant_html%21nabble%3Aemail.naml&amp;base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&amp;breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
        </div></div></blockquote>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/Help-can-t-see-inside-a-Bag-tp4891049p4891087.html">Re: Help! can't see inside a Bag</a><br/>
Sent from the <a href="http://forum.world.st/Squeak-Beginners-f107673.html">Squeak - Beginners mailing list archive</a> at Nabble.com.<br/>