Re: [Pharo-users] mentor question 3 is there a formula for this

2020-04-29 Thread Richard Sargent
On Wed, Apr 29, 2020 at 11:30 AM Roelof Wobben wrote: > Am I right here or terrible wrong ? > If you are referring to calculating the size of the square, you are correct. > Roelof > > > > Op 28-4-2020 om 20:53 schreef Roelof Wobben: > > Thanks, > > And the 5 can also be calculated by 2 *

Re: [Pharo-users] mentor question 3 is there a formula for this

2020-04-29 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Am I right here or terrible wrong ? Roelof Op 28-4-2020 om 20:53 schreef Roelof Wobben: Thanks, And the 5 can also be calculated by   2 * (char - $a)  + 1 Roelof

Re: [Pharo-users] mentor question 3 is there a formula for this

2020-04-29 Thread Ben Coman
Building on Richard's advice, one way to break this down into a series of simpler tasks is - first generate a square without any dots, i.e. ALL A's on the first line, ALL B's on second line, ALL C's on third line. - second, work out when to output a dot rather than a letter. cheers -ben On Wed,

Re: [Pharo-users] can I divide a string into part of exactly n length

2020-04-29 Thread Ben Coman
On Tue, 28 Apr 2020 at 01:08, Roelof Wobben via Pharo-users < pharo-users@lists.pharo.org> wrote: > Op 27-4-2020 om 19:05 schreef Richard Sargent: > > On Mon, Apr 27, 2020 at 9:27 AM Roelof Wobben via Pharo-users < > pharo-users@lists.pharo.org> wrote: > >> Hello, >> >> I wonder if it is possible

Re: [Pharo-users] mentor question 1

2020-04-29 Thread Ben Coman
> but I do not have a clue what the aBlock is You say the method definition is... > linksTowards: anAddressdo: aBlock and then later indicate its called like this... > linksTowards: aPacket destinationAddressdo: [ :link | self send: aPacket