[Newbies] "Print specific integers" Error message, how to improve and what causes that ?

RedTigerFish chihuyu at gmail.com
Fri Nov 17 02:57:44 UTC 2017


*Update:*

I found another way to solve this issue:

|myArray|

myArray := #(2 32 44 67 89 111 123).

n := 1.
a := myArray at: n.

1 to: 130 do: [:i|
    i = a      
    ifTrue: [
        Transcript show: i; cr.
        n := n +1.
        a := myArray at: n.
        n = 7
        ifTrue: [n := n - 1].
        ].  
    ].


*Looks ugly though*



-----
Dig, dig where you are,
Down below's well.
Let those that walk in darkness shout, 
Down below's hell.
--
Sent from: http://forum.world.st/Squeak-Beginners-f107673.html


More information about the Beginners mailing list