thank you.
<br/><br/><br/><div class='shrinkable-quote'><br/>&gt; On Apr 14, 2016, at 10:54 AM, Ron Teitelbaum [via Smalltalk] &lt;<a href="/user/SendEmail.jtp?type=node&node=4890103&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>&gt; wrote:
<br/>&gt; 
<br/>&gt; Hi Joseph, 
<br/>&gt; 
<br/>&gt; | aPoint aDictionary | 
<br/>&gt; 
<br/>&gt; aPoint := Point x: 1 y: 2. 
<br/>&gt; aDictionary := Dictionary new. 
<br/>&gt; aDictionary at: aPoint put: 'Success!'. 
<br/>&gt; ^aDictionary at: aPoint 
<br/>&gt; 
<br/>&gt; Everything in Smalltalk is an object. &nbsp;You can use a number or string as 
<br/>&gt; your dictionary key but you can also use more complex objects like a Point. 
<br/>&gt; 
<br/>&gt; The object matching is implemented in #=. &nbsp;If the objects match then the 
<br/>&gt; value will be returned. &nbsp; 
<br/>&gt; 
<br/>&gt; All the best, 
<br/>&gt; 
<br/>&gt; Ron Teitelbaum 
<br/>&gt; 
<br/>&gt; &gt; -----Original Message----- 
<br/>&gt; &gt; From: [hidden email] [mailto:beginners- 
<br/>&gt; &gt; [hidden email]] On Behalf Of Joseph Alotta 
<br/>&gt; &gt; Sent: Wednesday, April 13, 2016 9:46 PM 
<br/>&gt; &gt; To: [hidden email] 
<br/>&gt; &gt; Subject: [Newbies] f(x, y) or Table 
<br/>&gt; &gt; 
<br/>&gt; &gt; Greetings, 
<br/>&gt; &gt; 
<br/>&gt; &gt; I find a lot of my data needs two indices, f(x,y) instead of one, f(x). 
<br/>&gt; &gt; 
<br/>&gt; &gt; f(x) would be implemented easily with a Dictionary, 
<br/>&gt; &gt; 
<br/>&gt; &gt; but how do you implement f(x,y)? 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; I guess this is another way of asking is there a Table object or a Tuple
<br/>&gt; object,
<br/>&gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; of even a graphics object Screen that has x,y coordinates with a value? 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; Sincerely, 
<br/>&gt; &gt; 
<br/>&gt; &gt; Joe. 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; 
<br/>&gt; &gt; _______________________________________________ 
<br/>&gt; &gt; Beginners mailing list 
<br/>&gt; &gt; [hidden email] 
<br/>&gt; &gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br/>&gt; 
<br/>&gt; _______________________________________________ 
<br/>&gt; Beginners mailing list 
<br/>&gt; [hidden email] 
<br/>&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_top" rel="nofollow" link="external">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/f-x-y-or-Table-tp4889801p4890068.html" target="_top" rel="nofollow" link="external">http://forum.world.st/f-x-y-or-Table-tp4889801p4890068.html</a><br/>&gt; To start a new topic under Squeak - Beginners, email <a href="/user/SendEmail.jtp?type=node&node=4890103&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a> 
<br/>&gt; To unsubscribe from Squeak - Beginners, click here.
<br/>&gt; NAML
</div><br/>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://forum.world.st/f-x-y-or-Table-tp4889801p4890103.html">Re: f(x, y) or Table</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/>