Nested Intervals

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

Nested Intervals

Peter Stewart-2

            How do I nest Intervals so that I may reference a Matrix an element at a time? Matrix at: i at j.  Thanks.


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: Nested Intervals

Bert Freudenberg
On Mar 13, 2008, at 14:10 , Peter Stewart wrote:

>             How do I nest Intervals so that I may reference a Matrix  
> an element at a time? Matrix at: i at j.  Thanks.

1 to: matrix height do: [:j |
        1 to: matrix width do: [:i |
                (matrix at: i at: j) doSomething]]


Or did I misunderstand your question?

- Bert -


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