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