[prev in list] [next in list] [prev in thread] [next in thread]
List: squeak-beginners
Subject: [Newbies] Re: How does one create an array of points?
From: Joseph Alotta <joseph.alotta () gmail ! com>
Date: 2016-06-20 14:50:28
Message-ID: E0FF630C-8DD0-433D-B420-306359C5C403 () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
a := Array new: 2.
a at: 1 put: (Point x: 1 y: 1).
a at: 2 put: (Point x: 2 y: 2).
a => {1@1 . 2@2}
> On Jun 20, 2016, at 9:41 AM, Michael Rice [via Smalltalk] \
> <ml-node+s1294792n4901909h28@n4.nabble.com> wrote:
> I've been trying to create an array of points (in Squeak 5) but am failing badly. \
> See below: first part => what I get when I exec "print it" on the first part. \
> Guidance please.
> #(1@1 2@2) => #(1 #@ 1 2 #@ 2)
>
> #((Point x: 1 y: 1) (Point x: 2 y: 2)) => #(#(#Point #x: 1 #y: 1) #(#Point #x: 2 \
> #y: 2))
> #(12 'b' $c) => #(12 'b' $c)
>
> #(12 'b' $c 1@1) => #(12 'b' $c 1 #@ 1)
>
> #(12 'b' $c (1@1)) => #(12 'b' $c #(1 #@ 1))
>
> #(12 'b' $c (Point x: 1 y: 1)) => #(12 'b' $c #(#Point #x: 1 #y: 1))
>
> Point x:1 y: 1 => 1@1
>
> (Point x:1 y: 1) => 1@1
>
> #((Point x: 1 y: 1)) => #(#(#Point #x: 1 #y: 1))
>
> #(1@1) => #(1 #@ 1)
>
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> If you reply to this email, your message will be added to the discussion below:
> http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909.html
> To start a new topic under Squeak - Beginners, email \
> ml-node+s1294792n107673h12@n4.nabble.com To unsubscribe from Squeak - Beginners, \
> click here. NAML
--
View this message in context: \
http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909p4901913.html \
Sent from the Squeak - Beginners mailing list archive at Nabble.com.
[Attachment #5 (text/html)]
<br/>a := Array new: 2.
<br/>a at: 1 put: (Point x: 1 y: 1).
<br/>a at: 2 put: (Point x: 2 y: 2).
<br/><br/>a => {1@1 . 2@2}
<br/><br/><br/><div class='shrinkable-quote'><br/>> On Jun 20, 2016, at 9:41 AM, \
Michael Rice [via Smalltalk] <<a \
href="/user/SendEmail.jtp?type=node&node=4901913&i=0" target="_top" rel="nofollow" \
link="external">[hidden email]</a>> wrote: <br/>>
<br/>> I've been trying to create an array of points (in Squeak 5) but am failing \
badly. See below: first part => what I get when I exec "print it" on the \
first part. Guidance please. <br/>>
<br/>> #(1@1 2@2) => #(1 #@ 1 2 #@ 2)
<br/>>
<br/>> #((Point x: 1 y: 1) (Point x: 2 y: 2)) => #(#(#Point #x: 1 #y: 1) \
#(#Point #x: 2 #y: 2)) <br/>>
<br/>> #(12 'b' $c) => #(12 'b' $c)
<br/>>
<br/>> #(12 'b' $c 1@1) => #(12 'b' $c 1 #@ 1)
<br/>>
<br/>> #(12 'b' $c (1@1)) => #(12 'b' $c #(1 #@ 1))
<br/>>
<br/>> #(12 'b' $c (Point x: 1 y: 1)) => #(12 'b' $c #(#Point #x: 1 #y: 1))
<br/>>
<br/>> Point x:1 y: 1 => 1@1
<br/>>
<br/>> (Point x:1 y: 1) => 1@1
<br/>>
<br/>> #((Point x: 1 y: 1)) => #(#(#Point #x: 1 #y: 1))
<br/>>
<br/>> #(1@1) => #(1 #@ 1)
<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/>> If you reply to this email, your message will be added to the discussion \
below: <br/>> <a href="http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909.html" \
target="_top" rel="nofollow" \
link="external">http://forum.world.st/How-does-one-create-an-array-of-points-tp4901909.html</a><br/>> \
To start a new topic under Squeak - Beginners, email <a \
href="/user/SendEmail.jtp?type=node&node=4901913&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/How-does-one-create-an-array-of-points-tp4901909p4901913.html">Re: \
How does one create an array of points?</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/>
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic