Hi Roelof The block [] should be (). What's happening is that the block is being added to outcome which will then print itself out. Cheers Carlo On 26 Mar 2019, at 20:45, Roelof Wobben <r.wobben@home.nl> wrote: Hello Could be , im confused now I tried this : outcome add: 'Team | MP | W | D | L | P'. outcome add: [ String streamContents: [ :s | TeamStatusSorted do: [ :each | s << each name. s << String cr ] ] ]. ^ outcome but get now a output of the header and then the code. Roelof Op 26-3-2019 om 19:38 schreef Carlo:
Hi Roelof
I think you meant String streamContents: and not Array streamContents:
On 26 Mar 2019, at 20:12, Roelof Wobben <r.wobben@home.nl> wrote:
Hello,
I have a SortedCollection of teams.
Now I need to convert this to a line like this :
'Allegoric Alaskans | 1 | 1 | 0 | 0 | 3'
I tried it with this :
outcome := Array streamContents: [ :s | TeamStatusSorted do: [ :each | s << each name. s << String cr ] ]. ^ outcome
or String streamContents but it will not give me the right answer, So please some hints how I can make this work.
Roelof